diff --git a/examples/eth-canister-lite/README.md b/examples/eth-canister-lite/README.md index 0c55308..3398be1 100644 --- a/examples/eth-canister-lite/README.md +++ b/examples/eth-canister-lite/README.md @@ -5,7 +5,7 @@ If you want to test your project locally, you can use the following commands: ```bash -cd examples/eth-canister +cd examples/eth-canister-lite # Starts the replica, running in the background dfx start --background diff --git a/examples/eth-canister/README.md b/examples/eth-canister/README.md index 51cf185..9edde5f 100644 --- a/examples/eth-canister/README.md +++ b/examples/eth-canister/README.md @@ -21,7 +21,7 @@ dfx canister call eth-canister get_state '()' # set RPC agent # URL_CF_ETH: https://cloudflare-eth.com # URL_ANKR_ETH: https://rpc.ankr.com/eth -dfx canister call eth-canister admin_set_agent ' +dfx canister call eth-canister admin_set_agents ' (vec { record { name = "LDCLabs"; diff --git a/examples/eth-canister/eth-canister.did b/examples/eth-canister/eth-canister.did index f06dd1f..2234734 100644 --- a/examples/eth-canister/eth-canister.did +++ b/examples/eth-canister/eth-canister.did @@ -16,7 +16,7 @@ type State = record { rpc_agents : vec RPCAgent; }; service : (opt ChainArgs) -> { - admin_set_agent : (vec RPCAgent) -> (Result); + admin_set_agents : (vec RPCAgent) -> (Result); eth_chain_id : () -> (Result_1); get_best_block : () -> (Result_1); get_state : () -> (Result_2) query; diff --git a/examples/eth-canister/src/lib.rs b/examples/eth-canister/src/lib.rs index 8c13574..e1ad677 100644 --- a/examples/eth-canister/src/lib.rs +++ b/examples/eth-canister/src/lib.rs @@ -10,7 +10,7 @@ use crate::{init::ChainArgs, jsonrpc::EthereumRPC}; pub const SECONDS: u64 = 1_000_000_000; #[ic_cdk::update(guard = "is_controller")] -async fn admin_set_agent(agents: Vec) -> Result<(), String> { +async fn admin_set_agents(agents: Vec) -> Result<(), String> { if agents.is_empty() { return Err("agents cannot be empty".to_string()); } diff --git a/src/idempotent-proxy-canister/README.md b/src/idempotent-proxy-canister/README.md index 7656684..91a0fa8 100644 --- a/src/idempotent-proxy-canister/README.md +++ b/src/idempotent-proxy-canister/README.md @@ -28,14 +28,14 @@ dfx start --background dfx deploy idempotent-proxy-canister --argument "(opt variant {Init = record { ecdsa_key_name = \"dfx_test_key\"; - proxy_token_refresh_interval = 3600000; + proxy_token_refresh_interval = 3600; } })" dfx canister call idempotent-proxy-canister get_state '()' # 3 same agents for testing -dfx canister call idempotent-proxy-canister admin_set_agent ' +dfx canister call idempotent-proxy-canister admin_set_agents ' (vec { record { name = "LDCLabs";