Skip to content

ProviderError: failed to run contract: BadOrigin #192

@mutantcornholio

Description

@mutantcornholio

This started to happen after updating devnode to 18323842311.

  • git clone [email protected]:paritytech/scc-testing.git
  • cd morpho-blue
  • provide environment: REVIVE_DEV_NODE_BIN, ETC_RPC_BIN and RESOLC_BIN
  • npm install
  • npx hardhat test --network hardhat --grep 'testLiquidateCallback'
  1) Callbacks Integration Tests
       testLiquidateCallback:
     ProviderError: failed to run contract: BadOrigin
      at HttpProvider.request (/Users/cornholio/work/parity/scc-testing/morpho-blue/node_modules/hardhat/src/internal/core/providers/http.ts:116:21)
      at processTicksAndRejections (node:internal/process/task_queues:105:5)
      at async HardhatEthersProvider.estimateGas (/Users/cornholio/work/parity/scc-testing/morpho-blue/node_modules/@nomicfoundation/hardhat-ethers/src/internal/hardhat-ethers-provider.ts:246:27)
      at async /Users/cornholio/work/parity/scc-testing/morpho-blue/node_modules/@nomicfoundation/hardhat-ethers/src/signers.ts:335:35
      at async Promise.all (index 0)
      at async HardhatEthersSigner._sendUncheckedTransaction (/Users/cornholio/work/parity/scc-testing/morpho-blue/node_modules/@nomicfoundation/hardhat-ethers/src/signers.ts:356:7)
      at async HardhatEthersSigner.sendTransaction (/Users/cornholio/work/parity/scc-testing/morpho-blue/node_modules/@nomicfoundation/hardhat-ethers/src/signers.ts:181:18)
      at async send (/Users/cornholio/work/parity/scc-testing/morpho-blue/node_modules/ethers/src.ts/contract/contract.ts:313:20)
      at async Proxy.approve (/Users/cornholio/work/parity/scc-testing/morpho-blue/node_modules/ethers/src.ts/contract/contract.ts:352:16)
      at async Context.<anonymous> (/Users/cornholio/work/parity/scc-testing/morpho-blue/test/hardhat/forge-based/CallbacksIntegrationTest.test.ts:228:5)

Same thing's happening on Circle:

  • cd circle-evm-cctp-contracts
  • provide environment: REVIVE_DEV_NODE_BIN, ETC_RPC_BIN and RESOLC_BIN
  • npm install
  • npx hardhat test --network hardhat --grep testHandleReceiveFinalizedMessage_succeedsForZeroFee

Output:

  0 passing (2s)
  1 failing

  1) TokenMessengerV2
       testHandleReceiveFinalizedMessage_succeedsForZeroFee:
     ProviderError: failed to run contract: BadOrigin
      at HttpProvider.request (/Users/cornholio/work/parity/scc-testing/circle-evm-cctp-contracts/node_modules/hardhat/src/internal/core/providers/http.ts:116:21)
      at processTicksAndRejections (node:internal/process/task_queues:105:5)
      at async HardhatEthersProvider.estimateGas (/Users/cornholio/work/parity/scc-testing/circle-evm-cctp-contracts/node_modules/@nomicfoundation/hardhat-ethers/src/internal/hardhat-ethers-provider.ts:246:27)
      at async /Users/cornholio/work/parity/scc-testing/circle-evm-cctp-contracts/node_modules/@nomicfoundation/hardhat-ethers/src/signers.ts:335:35
      at async Promise.all (index 0)
      at async HardhatEthersSigner._sendUncheckedTransaction (/Users/cornholio/work/parity/scc-testing/circle-evm-cctp-contracts/node_modules/@nomicfoundation/hardhat-ethers/src/signers.ts:356:7)
      at async HardhatEthersSigner.sendTransaction (/Users/cornholio/work/parity/scc-testing/circle-evm-cctp-contracts/node_modules/@nomicfoundation/hardhat-ethers/src/signers.ts:181:18)
      at async send (/Users/cornholio/work/parity/scc-testing/circle-evm-cctp-contracts/node_modules/ethers/src.ts/contract/contract.ts:313:20)
      at async Proxy.handleReceiveFinalizedMessage (/Users/cornholio/work/parity/scc-testing/circle-evm-cctp-contracts/node_modules/ethers/src.ts/contract/contract.ts:352:16)
      at async Context.<anonymous> (/Users/cornholio/work/parity/scc-testing/circle-evm-cctp-contracts/test/hardhat/forge-based/v2/TokenMessengerV2.test.ts:456:7)

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions