From 77068ea3999438d5a35d76a7a0dd0305ce3291e8 Mon Sep 17 00:00:00 2001 From: ramtinms Date: Tue, 5 Mar 2024 11:33:40 -0800 Subject: [PATCH] add any evm address deposit to the contract --- protocol/20231116-evm-support.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/protocol/20231116-evm-support.md b/protocol/20231116-evm-support.md index 4e98dc53..83202b0d 100644 --- a/protocol/20231116-evm-support.md +++ b/protocol/20231116-evm-support.md @@ -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)