Skip to content

Commit

Permalink
single issue with Arc
Browse files Browse the repository at this point in the history
  • Loading branch information
Primata committed Aug 20, 2024
1 parent 373ebf0 commit eba05f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions protocol-units/bridge/cli/src/eth_to_moveth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ async fn bridge_to_ethereum(
println!("Current Ethereum block height: {}", current_block);

// Convert signer's private key to EthAddress
let initiator_address = MovementAddress(client.get_signer_address());
let recipient_address = RecipientAddress(From::from(recipient));
let initiator_address = MovementAddress(client.get_signer_address().await);
let recipient_address = RecipientAddress(From::from(recipient.to_vec()));
let hash_lock_pre_image = HashLockPreImage::random();
let hash_lock = HashLock(From::from(keccak256(hash_lock_pre_image)));
let time_lock = TimeLock(current_block + 100); // Set an appropriate time lock
Expand Down
6 changes: 3 additions & 3 deletions protocol-units/bridge/cli/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ impl From<MoveSharedArgs> for MovementConfig {
rpc_url: Some(args.move_rpc_url),
ws_url: Some(args.move_ws_url),
chain_id: args.move_chain_id,
signer_private_key: Some(args.move_signer_private_key),
initiator_contract: Some(args.move_initiator_contract.0),
counterparty_contract: Some(args.move_counterparty_contract.0),
signer_private_key: args.move_signer_private_key,
initiator_contract: Some(args.move_initiator_contract),
counterparty_contract: Some(args.move_counterparty_contract),
gas_limit: args.move_gas_limit,
}
}
Expand Down

0 comments on commit eba05f0

Please sign in to comment.