From 93931f4b762d90d1efa393bcb4f66de8f9eaa2f8 Mon Sep 17 00:00:00 2001 From: ramtinms Date: Wed, 24 Jan 2024 10:05:53 -0800 Subject: [PATCH] fix deposite --- protocol/20231116-evm-support.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/20231116-evm-support.md b/protocol/20231116-evm-support.md index 27d608b5..26c9cbc8 100644 --- a/protocol/20231116-evm-support.md +++ b/protocol/20231116-evm-support.md @@ -131,7 +131,7 @@ As mentioned earlier COAs expose two interfaces for interaction, one on the Flow - `address(): EVMAddress` returns the address of the smart contract, and the EVM address that is returned could be used to query balance, code, nonce, etc. -- `deposit(from: @FlowToken.Vault)` allows depositing FLOW tokens into the smart contract (Cadence to Flow EVM) +- `deposit(from: @FlowToken.Vault)` allows depositing FLOW tokens into the smart contract (Cadence to Flow EVM). - `withdraw(balance: Balance): @FlowToken.Vault` allows withdrawing balance from the Flow EVM address and bridges it back as a FlowToken Vault to be handled on the Cadence side. @@ -323,7 +323,7 @@ contract EVM { fun deposit(from: @FlowToken.Vault) { InternalEVM.deposit( from: <-from, - to: self.bytes + to: self.addressBytes ) }