internet-computer-protocol / evm-rpc-canister

Interact with EVM blockchains from the Internet Computer.
https://internetcomputer.org/docs/current/developer-docs/multi-chain/ethereum/evm-rpc/overview
Apache License 2.0
63 stars 13 forks source link

feat: add canister init args #112

Closed rvanasa closed 9 months ago

rvanasa commented 9 months ago

Replaces getNodesInSubnet() and setNodesInSubnet() methods with a Candid init argument:

dfx deploy evm_rpc --argument "(variant {nodesInSubnet = 13})"
dfx deploy evm_rpc_fiduciary --argument "(variant {nodesInSubnet = 28})"

The ideal situation would be to specify defaults in the dfx.json file, but this doesn't seem to be possible at the moment.