Skip to content

Commit

Permalink
feat(ucli): upgrade to latest solidity binding
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-aitlahcen committed Jan 26, 2024
1 parent 1a7718b commit 4bc8740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ucli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async fn handle_ucs_balance<C: ChainSpec>(
));
let relay = UCS01Relay::new(contract_address, signer_middleware.clone());

let denom = relay.denom_to_address(denom).await.unwrap();
let denom = relay.get_denom_address(denom).await.unwrap();
println!("Corresponding ERC20 address: {}", denom);

let erc_contract = erc20::ERC20::new(denom, signer_middleware.clone());
Expand Down Expand Up @@ -183,7 +183,7 @@ async fn handle_transfer<C: ChainSpec>(
));
let relay = UCS01Relay::new(relay_address, signer_middleware.clone());

let denom = relay.denom_to_address(denom).await.unwrap();
let denom = relay.get_denom_address(denom).await.unwrap();
println!("Address is: {}", denom);

let erc_contract = erc20::ERC20::new(denom, signer_middleware.clone());
Expand Down

0 comments on commit 4bc8740

Please sign in to comment.