You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running my test, buidler reports: The Buidler EVM tracing engine could not be initialized. Run Buidler with --verbose to learn more.
This is the error:
buidler:core:buidler-evm:node TypeError: Cannot read property 'startsWith' of undefined
at toCanonicalAbiType (/Users/roderik/Development/launchpad/packages/demo-enteth-complete/node_modules/@nomiclabs/buidler/src/internal/buidler-evm/stack-traces/compiler-to-model.ts:464:11)
at astFunctionDefinitionToSelector (/Users/roderik/Development/launchpad/packages/demo-enteth-complete/node_modules/@nomiclabs/buidler/src/internal/buidler-evm/stack-traces/compiler-to-model.ts:442:10)
at processFunctionDefinitionAstNode (/Users/roderik/Development/launchpad/packages/demo-enteth-complete/node_modules/@nomiclabs/buidler/src/internal/buidler-evm/stack-traces/compiler-to-model.ts:179:9)
at processContractAstNode (/Users/roderik/Development/launchpad/packages/demo-enteth-complete/node_modules/@nomiclabs/buidler/src/internal/buidler-evm/stack-traces/compiler-to-model.ts:126:7)
at createSourcesModelFromAst (/Users/roderik/Development/launchpad/packages/demo-enteth-complete/node_modules/@nomiclabs/buidler/src/internal/buidler-evm/stack-traces/compiler-to-model.ts:80:7)
at Object.createModelsAndDecodeBytecodes (/Users/roderik/Development/launchpad/packages/demo-enteth-complete/node_modules/@nomiclabs/buidler/src/internal/buidler-evm/stack-traces/compiler-to-model.ts:32:3)
at new BuidlerNode (/Users/roderik/Development/launchpad/packages/demo-enteth-complete/node_modules/@nomiclabs/buidler/src/internal/buidler-evm/provider/node.ts:303:25)
at Function.create (/Users/roderik/Development/launchpad/packages/demo-enteth-complete/node_modules/@nomiclabs/buidler/src/internal/buidler-evm/provider/node.ts:222:18)
at BuidlerEVMProvider._init (/Users/roderik/Development/launchpad/packages/demo-enteth-complete/node_modules/@nomiclabs/buidler/src/internal/buidler-evm/provider/provider.ts:267:28)
at BuidlerEVMProvider._send (/Users/roderik/Development/launchpad/packages/demo-enteth-complete/node_modules/@nomiclabs/buidler/src/internal/buidler-evm/provider/provider.ts:186:5)
at BuidlerEVMProvider.send (/Users/roderik/Development/launchpad/packages/demo-enteth-complete/node_modules/@nomiclabs/buidler/src/internal/buidler-evm/provider/provider.ts:80:14)
at Web3HTTPProviderAdapter._sendJsonRpcRequest (/Users/roderik/Development/launchpad/packages/demo-enteth-complete/node_modules/@nomiclabs/buidler-web3/src/web3-provider-adapter.ts:80:22) +0ms
When running my test, buidler reports:
The Buidler EVM tracing engine could not be initialized. Run Buidler with --verbose to learn more.
This is the error:
It happens when calling
toCanonicalAbiType
here: https://github.com/nomiclabs/buidler/blob/c3b10973740da1c9a44db05f82169bd0a6b1b95a/packages/buidler-core/src/internal/buidler-evm/stack-traces/compiler-to-model.ts#L439After some debugging I found the culprit.
My contract has the following function:
Where the ast of the callback function looks like this:
and you see that typeName does not have a
name
field.The text was updated successfully, but these errors were encountered: