TransactionSEALED
$◆▪█%~^@▓▪!▫░!○▫▪░◆*□╱&■▫▪$$~~▒○■▓&╳░%□◇■~░□*□╲◇!$▪$■█▒■?$~░▒●◆^
Transaction ID
Execution Fee
0.00001074 FLOWExecution Error
[Error Code: 1101] error caused by: 1 error occurred: * transaction execute failed: [Error Code: 1101] cadence runtime error: Execution failed: error: assertion failed: evm_error=nonce too low: address 0x977fd7cfe42d757Aa914098F8A05E0509B40658B, tx: 2167351 state: 2167353 --> 7b24e62bd91da5b336b882463e20f231b1a22b9dc71dfd48289b5b4af5cc1073:29:12 | 29 | assert( 30 | txResult.status == EVM.Status.failed || txResult.status == EVM.Status.successful, 31 | message: "evm_error=".concat(txResult.errorMessage).concat("\n") 32 | ) | ^ Was this error unhelpful? Consider suggesting an improvement here: https://github.com/onflow/cadence/issues.
Script Arguments
0hexEncodedTxs[String]
[ "f8ee832112378405f5e100833cfa3994398343f6a90469c30927af4377d564cc3ba3f10580b8842a3774a20000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000378000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000008205faa0718a55646904a73a7c4790d1dbd7027773642eeed564a52d79a034d1a83fd32ea03c346ebb4e295647f6aad162c090079cadebb8b69d10b78e62a16044164a576b", "f8ee832112388405f5e100833cfa3994398343f6a90469c30927af4377d564cc3ba3f10580b8842a3774a20000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000378000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000008205faa0a0c377d8feab7395397ce3455e353e82103d8362003d1c0c30175d2fcfe9a239a03673fa1f4063ff0f01e3cc598952c9b1cfd758000f61eca54027d49f8d71edee" ]
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}