Skip to content

"missing field opcodes" in OZ library v5.4 #163

@KitHat

Description

@KitHat

We are seeing a weird error when testing the most recent version of @parity/hardhat-polkadot: 0.1.11-pre1:

Error: missing field `opcodes` at line 1 column 35631441
    at Function.create (/home/runner/work/openzeppelin-polkadot-contracts-test-suite/openzeppelin-polkadot-contracts-test-suite/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:182:37)
    at createHardhatNetworkProvider (/home/runner/work/openzeppelin-polkadot-contracts-test-suite/openzeppelin-polkadot-contracts-test-suite/node_modules/hardhat/src/internal/hardhat-network/provider/provider.ts:458:45)
    at createProvider (/home/runner/work/openzeppelin-polkadot-contracts-test-suite/openzeppelin-polkadot-contracts-test-suite/node_modules/hardhat/src/internal/core/providers/construction.ts:85:23)
    at LazyInitializationProviderAdapter.init (/home/runner/work/openzeppelin-polkadot-contracts-test-suite/openzeppelin-polkadot-contracts-test-suite/node_modules/hardhat/src/internal/core/providers/lazy-initialization.ts:42:23)
    at LazyInitializationProviderAdapter._getOrInitProvider (/home/runner/work/openzeppelin-polkadot-contracts-test-suite/openzeppelin-polkadot-contracts-test-suite/node_modules/hardhat/src/internal/core/providers/lazy-initialization.ts:173:23)
    at LazyInitializationProviderAdapter.request (/home/runner/work/openzeppelin-polkadot-contracts-test-suite/openzeppelin-polkadot-contracts-test-suite/node_modules/hardhat/src/internal/core/providers/lazy-initialization.ts:63:22)
    at initializeGasReporterProvider (/home/runner/work/openzeppelin-polkadot-contracts-test-suite/openzeppelin-polkadot-contracts-test-suite/node_modules/hardhat-gas-reporter/src/index.ts:77:3)
    at SimpleTaskDefinition.action (/home/runner/work/openzeppelin-polkadot-contracts-test-suite/openzeppelin-polkadot-contracts-test-suite/node_modules/hardhat-gas-reporter/src/index.ts:148:7)
    at Environment._runTaskDefinition (/home/runner/work/openzeppelin-polkadot-contracts-test-suite/openzeppelin-polkadot-contracts-test-suite/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14)
    at Environment.run (/home/runner/work/openzeppelin-polkadot-contracts-test-suite/openzeppelin-polkadot-contracts-test-suite/node_modules/hardhat/src/internal/core/runtime-environment.ts:184:14) {
  code: 'GenericFailure'
}

Branch of OZ library: https://github.com/OpenZeppelin/openzeppelin-contracts/tree/v5.4.0
hardhat.config.js attached

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions