Skip to content

@acala-network/chopsticks-coreDocs


@acala-network/chopsticks-core / decodeBlockStorageDiff

Function: decodeBlockStorageDiff()

decodeBlockStorageDiff(block, diff): Promise<object[]>

Decode block storage diff

Parameters

block: Block

Block to compare storage diff

diff: [`0x${string}`, null | `0x${string}`][]

Storage diff

Returns

Promise<object[]>

decoded old state and new state

Defined in

packages/core/src/utils/decoder.ts:129