Skip to content

Commit

Permalink
Fix force_withdraw
Browse files Browse the repository at this point in the history
  • Loading branch information
karim-en committed Oct 13, 2023
1 parent 93b9105 commit ee86658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridge-token-factory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,13 @@ impl BridgeTokenFactory {

#[access_control_any(roles(Role::DAO, Role::ForceWithdrawer))]
#[result_serializer(borsh)]
pub fn force_withdraw(&self, token: String, amount: Balance, recipient: String) -> ResultType {
pub fn force_withdraw(&self, token: String, amount: U128, recipient: String) -> ResultType {
assert!(
self.tokens.contains(&token),
"Such BridgeToken does not exist."
);
ResultType::Withdraw {
amount,
amount: amount.into(),
token: validate_eth_address(token),
recipient: validate_eth_address(recipient),
}
Expand Down

0 comments on commit ee86658

Please sign in to comment.