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

refactor: simplify `EthRpcClient` #278

Closed gregorydemay closed 1 month ago

gregorydemay commented 1 month ago

Follow-up on #275 to simplify EthRpcClient:

  1. simplify instantiation by removing intermediate methods between CandidRpcClient::new (the caller) and EthRpcClient::new
  2. Change the field EthRpcClient::providers to be non-optional, since any instantiation of the client checks that the given providers are not empty.
  3. Remove the trait RpcTransport and the dependency on async-trait, since a single implementation was used