Skip to content

Commit

Permalink
fix deposite
Browse files Browse the repository at this point in the history
  • Loading branch information
ramtinms committed Jan 24, 2024
1 parent 318b15b commit 93931f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protocol/20231116-evm-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -323,7 +323,7 @@ contract EVM {
fun deposit(from: @FlowToken.Vault) {
InternalEVM.deposit(
from: <-from,
to: self.bytes
to: self.addressBytes
)
}
Expand Down

0 comments on commit 93931f4

Please sign in to comment.