EVMSEALEDEVM
~░?╲?$╲■$▫▫◆╱░*█□&#▪?╲%░%█╲*~╱○◇~!○▫#!^▓%@◇▒@$~●$◆^╲╱□▓#■*^╱▫$╱◆
Transaction ID
Execution Fee
0.00011446 FLOWTransaction Summary
EVMCalled FungibleToken, FlowToken, EVM
Contracts
Script Arguments
0toEVMAddressHexString
A48EC5cdF65D55915622bCb9988a1f479a617521
1amountUInt256
1270000000000000000000
2data[UInt8]
[ "236", "174", "8", "252", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "64", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "2", "119", "200", "161", "175", "105", "123", "56", "188", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "68", "216", "202", "95", "64", "106", "24", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "17", "9", "255", "200", "162", "49", "17", "59", "144", "25", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "128", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "224", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "2", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "211", "191", "83", "218", "193", "6", "160", "41", "11", "4", "131", "236", "188", "137", "212", "15", "204", "150", "31", "62", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "106", "100", "224", "39", "227", "246", "169", "74", "203", "220", "243", "156", "240", "203", "180", "190", "173", "95", "94", "203", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "1", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "0", "148", "202", "134", "111", "65", "56", "254", "43", "158", "82", "244", "8", "150", "5", "102", "192", "154", "232", "243", "125" ]
3gasLimitUInt64
30000000
Cadence Script
1// Flow Wallet - mainnet Script callContractV2 - v2.68
2// Extension-2.8.5
3
4import FungibleToken from 0xf233dcee88fe0abe
5
6import FlowToken from 0x1654653399040a61
7
8import EVM from 0xe467b9dd11fa00df
9
10
11/// Transfers $FLOW from the signer's account Cadence Flow balance to the recipient's hex-encoded EVM address.
12/// Note that a COA must have a $FLOW balance in EVM before transferring value to another EVM address.
13///
14transaction(toEVMAddressHex: String, amount: UInt256, data: [UInt8], gasLimit: UInt64) {
15
16 let coa: auth(EVM.Withdraw, EVM.Call) &EVM.CadenceOwnedAccount
17 let recipientEVMAddress: EVM.EVMAddress
18
19 prepare(signer: auth(BorrowValue, SaveValue) &Account) {
20 if signer.storage.type(at: /storage/evm) == nil {
21 signer.storage.save(<-EVM.createCadenceOwnedAccount(), to: /storage/evm)
22 }
23 self.coa = signer.storage.borrow<auth(EVM.Withdraw, EVM.Call) &EVM.CadenceOwnedAccount>(from: /storage/evm)
24 ?? panic("Could not borrow reference to the signer's bridged account")
25
26 self.recipientEVMAddress = EVM.addressFromString(toEVMAddressHex)
27 }
28
29 execute {
30 if self.recipientEVMAddress.bytes == self.coa.address().bytes {
31 return
32 }
33 let valueBalance = EVM.Balance(attoflow: UInt(amount))
34
35 let txResult = self.coa.call(
36 to: self.recipientEVMAddress,
37 data: data,
38 gasLimit: gasLimit,
39 value: valueBalance
40 )
41 assert(
42 txResult.status == EVM.Status.failed || txResult.status == EVM.Status.successful,
43 message: "evm_error=".concat(txResult.errorMessage).concat("\n")
44 )
45 }
46}