EVMSEALEDEVM
╲~░■●◆□■$▪╲▪█▒$@▓?▪╱^░■!●%●○◇?&?█◆%&▫■~$●◇^▒╲◇▪◇░#@~$○╲╲█◆╲░▒╱░~
Transaction ID
Execution Fee
0.00026317 FLOWTransaction Summary
EVMCalled EVM
EVM Hashes
Contracts
Script Arguments
0hexEncodedTxs[String]
[ "f8ee831785d18405f5e100835b7eb994398343f6a90469c30927af4377d564cc3ba3f10580b8842a3774a20000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000378000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000008205faa01e4e7ba016d0c79a2ac184e4dd0fdd97bd099505156a355c19fc93993bac2732a04d6299c48f5dd9a68fe2fd0b25d28cf411840952d6939a7eb2db798b328c684a", "f8ee831785d18405f5e100835b7eb994398343f6a90469c30927af4377d564cc3ba3f10580b8842a3774a20000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000378000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000008205faa01e4e7ba016d0c79a2ac184e4dd0fdd97bd099505156a355c19fc93993bac2732a04d6299c48f5dd9a68fe2fd0b25d28cf411840952d6939a7eb2db798b328c684a", "f8ee831785d18405f5e100835b7eb994398343f6a90469c30927af4377d564cc3ba3f10580b8842a3774a20000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000378000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000008205faa01e4e7ba016d0c79a2ac184e4dd0fdd97bd099505156a355c19fc93993bac2732a04d6299c48f5dd9a68fe2fd0b25d28cf411840952d6939a7eb2db798b328c684a", "f8ee831785d28405f5e100835b7eb994398343f6a90469c30927af4377d564cc3ba3f10580b8842a3774a20000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000378000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000008205faa0144407ae77e0eb51ed58f997f318e9c51b9eca8f07a1155d2fef4af064e14f46a076a17d4c999d2e11096f89cb9dd2fd25964c4040165c4fd285fa9f2b1155988d" ]
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}