Skip to content

Commit

Permalink
Withdrawability check (#2523)
Browse files Browse the repository at this point in the history
* Bump frontier commit

* Impl can_withdraw
  • Loading branch information
notlesh authored and Cem Eliguzel committed Oct 18, 2023
1 parent 2a0768b commit 18983ce
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
46 changes: 23 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions runtime/common/src/impl_on_charge_evm_transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ macro_rules! impl_on_charge_evm_transaction {
EVMCurrencyAdapter::<<T as pallet_evm::Config>::Currency, ()>::withdraw_fee(who, fee)
}

fn can_withdraw(who: &H160, amount: U256) -> Result<(), pallet_evm::Error<T>> {
EVMCurrencyAdapter::<<T as pallet_evm::Config>::Currency, ()>::can_withdraw(who, amount)
}

fn correct_and_deposit_fee(
who: &H160,
corrected_fee: U256,
Expand Down

0 comments on commit 18983ce

Please sign in to comment.