Chain fusion: error -32010 "AlreadyKnown" when sending tx

To actually use the local package version I had to change my cargo.toml: this version from the upstream repo does not use the local packages.

ic-evm-utils = "1.0.0"
evm-rpc-canister-types = "1.0.0"

This version does:

ic-evm-utils = { path = "packages/ic-evm-utils" }
evm-rpc-canister-types = { path = "packages/evm-rpc-canister-types" }

Unfortunately, now, I can’t update my canister anymore. Running the deploy script fails with this error:

Error: Failed to install wasm module to canister 'chain_fusion'.
Caused by: Failed during wasm installation call
Caused by: The replica returned a rejection error: reject code CanisterError, reject message Error from Canister h4e2i-uaaaa-aaaag-albyq-cai: Canister's Wasm module is not valid: Wasm module has an invalid import section. Module imports function '__wbindgen_describe' from '__wbindgen_placeholder__' that is not exported by the runtime..
This is likely an error with the compiler/CDK toolchain being used to build the canister. Please report the error to IC devs on the forum: https://forum.dfinity.org and include which language/CDK was used to create the canister., error code None

Here is the PR that shows what I changed. It might even be related to the getrandom-thing mentioned in my last post.

Does anyone have any recommendations?

UPDATE: thanks to this post I changed my import of getrandom to “custom”, which fixed the issue:

getrandom = { features = ["custom"] }
1 Like