Skip to content

Commit

Permalink
fix: fix document
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Jul 8, 2024
1 parent 45bd33e commit d18895a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/eth-canister-lite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion examples/eth-canister/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion examples/eth-canister/eth-canister.did
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion examples/eth-canister/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<agent::RPCAgent>) -> Result<(), String> {
async fn admin_set_agents(agents: Vec<agent::RPCAgent>) -> Result<(), String> {
if agents.is_empty() {
return Err("agents cannot be empty".to_string());
}
Expand Down
4 changes: 2 additions & 2 deletions src/idempotent-proxy-canister/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit d18895a

Please sign in to comment.