Skip to content

Commit

Permalink
add any evm address deposit to the contract
Browse files Browse the repository at this point in the history
  • Loading branch information
ramtinms committed Mar 5, 2024
1 parent 2023b5a commit 77068ea
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions protocol/20231116-evm-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,15 @@ contract EVM {
address: self.bytes
)
}
/// Deposits the given vault into the EVM address
access(all)
fun deposit(from: @FlowToken.Vault) {
InternalEVM.deposit(
from: <-from,
to: self.bytes
)
}
}
access(all)
Expand Down

0 comments on commit 77068ea

Please sign in to comment.