▫?^◇▫╳▪╲█@◆◆╳?█╳○~░■^$%□░╲$~@!◇◆╲╲╳@○▫█░░▒╱~╳▒░░█●!▪□◇?╱░□%■╳?$○
Transaction ID
Execution Fee
0.01938 FLOWExecution Error
[Error Code: 1300] evm runtime error: insufficient funds for gas * price + value: address 0x000000000000000000000002ddDC0646105a3fD4 have 7970872255380 want 274953732210000000000
10 prepare(signer: auth(BorrowValue, CopyValue, SaveValue, IssueStorageCapabilityController) &Account) {
11 let coa = signer.storage.borrow<auth(EVM.Bridge, EVM.Withdraw, EVM.Call) &EVM.CadenceOwnedAccount>(from: /storage/evm)!;let inVault = signer.storage.borrow<auth(FungibleToken.Withdraw) &FlowToken.Vault>(from: /storage/flowTokenVault)!;let startBalance = inVault.balance;let a <- inVault.withdraw(amount: amount);let b <- getAccount(0xe468e4c5081b5501).capabilities.borrow<&{SwapInterfaces.PairPublic}>(SwapConfig.PairPublicPath)!.swap(vaultIn: <- a, exactAmountOut: nil);
12 let c = FlowEVMUtil.bridgeTokenToEVM(coa, capCopy: signer.storage.copy<Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>>(from: FlowEVMBridgeConfig.providerCapabilityStoragePath)!, vault: <-b)
13 txData[0] = FlowEVMUtil.replaceInto(into: txData[0], replace: FlowEVMUtil.convertUInt256ToBytes(c), start: 132);let r0 = FlowEVMUtil.approveAndSwap(coa, tokenAddress: EVM.addressFromString("0x99aF3EeA856556646C98c8B9b2548Fe815240750"), amount: c, contractAddress: EVM.addressFromString("0xeEDC6Ff75e1b10B903D9013c358e446a73d35341"), txdata: txData[0], gasLimit: gasLimit[0]);let d = FlowEVMUtil.convertBytesToUInt256(r0.slice(from: r0.length - 32, upTo: r0.length))
14 txData[1] = FlowEVMUtil.replaceInto(into: txData[1], replace: FlowEVMUtil.convertUInt256ToBytes(d), start: 132);let r1 = FlowEVMUtil.approveAndSwap(coa, tokenAddress: EVM.addressFromString("0xF1815bd50389c46847f0Bda824eC8da914045D14"), amount: d, contractAddress: EVM.addressFromString("0xeEDC6Ff75e1b10B903D9013c358e446a73d35341"), txdata: txData[1], gasLimit: gasLimit[1]);let e = FlowEVMUtil.convertBytesToUInt256(r1.slice(from: r1.length - 32, upTo: r1.length))
15 let f <- FlowEVMUtil.bridgeFlowToCadence(coa, amount: e);inVault.deposit(from: <- f);assert(inVault.balance >= startBalance, message: inVault.balance.toString().concat(" < ").concat(startBalance.toString()));
16 }
17}Raw Error
[Error Code: 1300] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: --> b088e8ecd19ed6fd63a52ed5ea9a2087aefed4352cc8786005e50c23e6cf386b:15:11 | 15 | let f <- FlowEVMUtil.bridgeFlowToCadence(coa, amount: e);inVault.deposit(from: <- f);assert(inVault.balance >= startBalance, message: inVault.balance.toString().concat(" < ").concat(startBalance.toString())); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --> ccacabad8e80b596.FlowEVMUtil:112:18 error: [Error Code: 1300] evm runtime error: insufficient funds for gas * price + value: address 0x000000000000000000000002ddDC0646105a3fD4 have 7970872255380 want 274953732210000000000 --> e467b9dd11fa00df.EVM:533:25 Was this error unhelpful? Consider suggesting an improvement here: https://github.com/onflow/cadence/issues.
Transaction Summary
Contract CallCalled EVM, FlowEVMBridgeConfig, FlowEVMUtil +4 more
Script Arguments
[
[
"4",
"228",
"90",
"175",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"153",
"175",
"62",
"234",
"133",
"101",
"86",
"100",
"108",
"152",
"200",
"185",
"178",
"84",
"143",
"232",
"21",
"36",
"7",
"80",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"241",
"129",
"91",
"213",
"3",
"137",
"196",
"104",
"71",
"240",
"189",
"168",
"36",
"236",
"141",
"169",
"20",
"4",
"93",
"20",
"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",
"100",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"2",
"221",
"220",
"6",
"70",
"16",
"90",
"63",
"212",
"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",
"80",
"147",
"48",
"42",
"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",
"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",
"0",
"0"
],
[
"4",
"228",
"90",
"175",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"241",
"129",
"91",
"213",
"3",
"137",
"196",
"104",
"71",
"240",
"189",
"168",
"36",
"236",
"141",
"169",
"20",
"4",
"93",
"20",
"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",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"11",
"184",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"2",
"221",
"220",
"6",
"70",
"16",
"90",
"63",
"212",
"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",
"80",
"159",
"11",
"180",
"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",
"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",
"0",
"0"
]
][ "15000000", "15000000" ]
[ "0", "0" ]
Cadence Script
1import EVM from 0xe467b9dd11fa00df
2import FlowEVMBridgeConfig from 0x1e4aa0b87d10b141
3import FlowEVMUtil from 0xccacabad8e80b596
4import FlowToken from 0x1654653399040a61
5import FungibleToken from 0xf233dcee88fe0abe
6import SwapConfig from 0xb78ef7afa52ff906
7import SwapInterfaces from 0xb78ef7afa52ff906
8
9transaction(amount: UFix64, txData: [[UInt8]], gasLimit: [UInt64], value: [UInt]) {
10 prepare(signer: auth(BorrowValue, CopyValue, SaveValue, IssueStorageCapabilityController) &Account) {
11 let coa = signer.storage.borrow<auth(EVM.Bridge, EVM.Withdraw, EVM.Call) &EVM.CadenceOwnedAccount>(from: /storage/evm)!;let inVault = signer.storage.borrow<auth(FungibleToken.Withdraw) &FlowToken.Vault>(from: /storage/flowTokenVault)!;let startBalance = inVault.balance;let a <- inVault.withdraw(amount: amount);let b <- getAccount(0xe468e4c5081b5501).capabilities.borrow<&{SwapInterfaces.PairPublic}>(SwapConfig.PairPublicPath)!.swap(vaultIn: <- a, exactAmountOut: nil);
12 let c = FlowEVMUtil.bridgeTokenToEVM(coa, capCopy: signer.storage.copy<Capability<auth(FungibleToken.Withdraw) &{FungibleToken.Provider}>>(from: FlowEVMBridgeConfig.providerCapabilityStoragePath)!, vault: <-b)
13 txData[0] = FlowEVMUtil.replaceInto(into: txData[0], replace: FlowEVMUtil.convertUInt256ToBytes(c), start: 132);let r0 = FlowEVMUtil.approveAndSwap(coa, tokenAddress: EVM.addressFromString("0x99aF3EeA856556646C98c8B9b2548Fe815240750"), amount: c, contractAddress: EVM.addressFromString("0xeEDC6Ff75e1b10B903D9013c358e446a73d35341"), txdata: txData[0], gasLimit: gasLimit[0]);let d = FlowEVMUtil.convertBytesToUInt256(r0.slice(from: r0.length - 32, upTo: r0.length))
14 txData[1] = FlowEVMUtil.replaceInto(into: txData[1], replace: FlowEVMUtil.convertUInt256ToBytes(d), start: 132);let r1 = FlowEVMUtil.approveAndSwap(coa, tokenAddress: EVM.addressFromString("0xF1815bd50389c46847f0Bda824eC8da914045D14"), amount: d, contractAddress: EVM.addressFromString("0xeEDC6Ff75e1b10B903D9013c358e446a73d35341"), txdata: txData[1], gasLimit: gasLimit[1]);let e = FlowEVMUtil.convertBytesToUInt256(r1.slice(from: r1.length - 32, upTo: r1.length))
15 let f <- FlowEVMUtil.bridgeFlowToCadence(coa, amount: e);inVault.deposit(from: <- f);assert(inVault.balance >= startBalance, message: inVault.balance.toString().concat(" < ").concat(startBalance.toString()));
16 }
17}