Skip to content

Commit

Permalink
fix getBundleStatus function retrun
Browse files Browse the repository at this point in the history
  • Loading branch information
Sednaoui committed Aug 7, 2023
1 parent 2bdcef6 commit 6231f90
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/services/transaction_watchdog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@ class TransactionWatchdog {
}
return null;
}
if (!receipt["status"]!) return null;
if (!receipt["success"]!) return null;
return {
"calls": [
{
"status": "CONFIRMED",
"receipt": {
"logs": receipt["receipt"]["logs"].map((e) => {
"address": e.address?.hexEip55,
"topics": e.topics,
"data": e.data,
"address": e["address"],
"topics": e["topics"],
"data": e["data"],
}).toList(),
"success": receipt["status"],
"blockHash": bytesToHex(receipt["receipt"]["blockHash"], include0x: true),
"success": receipt["success"],
"blockHash": receipt["receipt"]["blockHash"],
"blockNumber": receipt["receipt"]["blockNumber"],
"gasUsed": receipt["receipt"]["gasUsed"],
"transactionHash": receipt["receipt"]["transactionHash"],
Expand Down

0 comments on commit 6231f90

Please sign in to comment.