Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Decoding Error when running Ganache 2.5.4 on darwin #3962

Open
almaraz97 opened this issue Feb 4, 2022 · 0 comments
Open

Decoding Error when running Ganache 2.5.4 on darwin #3962

almaraz97 opened this issue Feb 4, 2022 · 0 comments

Comments

@almaraz97
Copy link

Using dynamic arrays in a struct breaks decoding of contract storage/transactions/events

PLATFORM: darwin
GANACHE VERSION: 2.5.4

EXCEPTION:

TypeError: definitions is not iterable
    at allocateMembers (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/@truffle/decoder/lib/allocate/storage.ts:46:21)
    at allocateStruct (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/@truffle/decoder/lib/allocate/storage.ts:29:10)
    at storageSizeAndAllocate (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/@truffle/decoder/lib/allocate/storage.ts:302:23)
    at Object.storageSize (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/@truffle/decoder/lib/allocate/storage.ts:194:10)
    at decodeStorageReference (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/@truffle/decoder/lib/decode/storage.ts:105:43)
    at decodeStorageReference.next (<anonymous>)
    at Object.decodeStorage [as default] (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/@truffle/decoder/lib/decode/storage.ts:26:19)
    at decodeStorage.next (<anonymous>)
    at Object.decode [as default] (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/@truffle/decoder/lib/decode/index.ts:26:32)
    at decode.next (<anonymous>)
    at TruffleContractDecoder.<anonymous> (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/@truffle/decoder/lib/interface/contract-decoder.ts:283:24)
    at Generator.next (<anonymous>)
    at fulfilled (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/@truffle/decoder/dist/interface/contract-decoder.js:5:58)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant