EVMSEALEDEVM
!○╱?▪▪◇~■$█□◆░?░?●@@●□▒**▪╳▪╳@~■╳╳*@▪◆○▒&■~##○$^▓$■◇■░&▫@○$!╱▒◇╲
Transaction ID
Execution Fee
0.00040487 FLOWTransaction Summary
EVM
Called EVM
EVM Hashes
Contracts
Script Arguments
Copy:
0hexEncodedTxs[String]
[ "f8ee83143bf48405f5e100835b7eb9947e8dd69f0675e61efaefe3403f2037f85cc669dd80b884cb67d7ac0000000000000000000000000000000000000000000000a2a15d09519be000000000000000000000000000000000000000000000000000000000000000000378000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000008205faa02d3a604747c994224d05ede1a9de5ed5c2a58c3a8bbb5b0cac8400b6d182dd7da0051630a9eac710e1fec8c19d4bae80658fe4a84e220db2f6562f7ff2c8ac7eda", "f8ee83143bf48405f5e100835b7eb9947e8dd69f0675e61efaefe3403f2037f85cc669dd80b884cb67d7ac0000000000000000000000000000000000000000000000a2a15d09519be000000000000000000000000000000000000000000000000000000000000000000378000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000008205faa02d3a604747c994224d05ede1a9de5ed5c2a58c3a8bbb5b0cac8400b6d182dd7da0051630a9eac710e1fec8c19d4bae80658fe4a84e220db2f6562f7ff2c8ac7eda", "f8ee83143bf58405f5e100835b7eb9947e8dd69f0675e61efaefe3403f2037f85cc669dd80b884cb67d7ac0000000000000000000000000000000000000000000000a2a15d09519be000000000000000000000000000000000000000000000000000000000000000000378000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000008205faa060131f89093e27a0f4e0f66589d6fd3acca8e0a088a844ffb7516b958caf8a4da0738ea702f8ee7db59f50ea5170f22d00ce530a047c70f5b23b13bee0cf880b61" ]
1coinbaseString
Cadence Script
1import EVM from 0xe467b9dd11fa00df
2
3transaction(hexEncodedTxs: [String], coinbase: String) {
4 execute {
5 let txs: [[UInt8]] = []
6 for tx in hexEncodedTxs {
7 txs.append(tx.decodeHex())
8 }
9
10 let txResults = EVM.batchRun(
11 txs: txs,
12 coinbase: EVM.addressFromString(coinbase)
13 )
14
15 // If at least one of the EVM transactions in the batch is either
16 // failed or successful, in other words not invalid, we let the
17 // Cadence transaction succeed.
18 for txResult in txResults {
19 if txResult.status == EVM.Status.failed || txResult.status == EVM.Status.successful {
20 return
21 }
22 }
23
24 // Otherwise, all EVM transactions are invalid txs and can't be
25 // executed (such as nonce too low).
26 // In this case, we fail the Cadence transaction with the error
27 // message from the first EVM transaction.
28 for txResult in txResults {
29 assert(
30 txResult.status == EVM.Status.failed || txResult.status == EVM.Status.successful,
31 message: "evm_error=".concat(txResult.errorMessage).concat("\n")
32 )
33 }
34 }
35}