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
similar to #301 (and same 'solution', to use mode: storage)
config:
# Contracts to watch (required).
contracts:
# Contract name.
- name: ERC777
# Contract file path or an url.
path: ../../openzeppelin-contracts/contracts/token/ERC777/ERC777.sol
# Contract kind
kind: ERC777
# Output folder path (logs output using `stdout` if not provided).
outputFolder: ../test-erc777-watcher
# Code generation mode [eth_call | storage | all | none] (default: none).
mode: all
# Kind of watcher [lazy | active] (default: active).
kind: active
# Watcher server port (default: 3008).
host: 0.0.0.0
port: 3009
# Flatten the input contract file(s) [true | false] (default: true).
flatten: true
error:
# yarn codegen --config-file config777.yaml
yarn run v1.22.19
$ ts-node src/generate-code.ts --config-file config777.yaml
AssertionError [ERR_ASSERTION]: ts type for sol type undefined for defaultOperators not found
at Schema.addQuery (/root/watcher-ts/packages/codegen/src/schema.ts:40:11)
at Visitor.functionDefinitionVisitor (/root/watcher-ts/packages/codegen/src/visitor.ts:70:20)
at visit (/root/watcher-ts/node_modules/@solidity-parser/parser/src/parser.ts:118:25)
at /root/watcher-ts/node_modules/@solidity-parser/parser/src/parser.ts:109:29
at Array.forEach (<anonymous>)
at visit (/root/watcher-ts/node_modules/@solidity-parser/parser/src/parser.ts:109:10)
at visit (/root/watcher-ts/node_modules/@solidity-parser/parser/src/parser.ts:126:7)
at /root/watcher-ts/node_modules/@solidity-parser/parser/src/parser.ts:109:29
at Array.forEach (<anonymous>)
at visit (/root/watcher-ts/node_modules/@solidity-parser/parser/src/parser.ts:109:10) {
generatedMessage: false,
code: 'ERR_ASSERTION',
actual: undefined,
expected: true,
operator: '=='
}
as with #301, mode: eth_call does not work but mode: storage does
The text was updated successfully, but these errors were encountered:
zramsay
changed the title
codegen AssertionError: ts type for sol type undefined for defaultOperators not found
codegen AssertionError: ts type for sol type undefined for defaultOperators not found (ERC777)
Jan 24, 2023
similar to #301 (and same 'solution', to use
mode: storage
)config:
error:
as with #301,
mode: eth_call
does not work butmode: storage
doesThe text was updated successfully, but these errors were encountered: