Skip to content

Commit

Permalink
fix: add nonce to serialized stacks tx (#430)
Browse files Browse the repository at this point in the history
Fixes #422
  • Loading branch information
MicaiahReid authored Oct 4, 2023
1 parent 10d6475 commit 95b2dd7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/chainhook-sdk/src/chainhooks/stacks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ fn serialize_stacks_transaction(
json!(transaction.metadata.result)
},
"sender": transaction.metadata.sender,
"nonce": transaction.metadata.nonce,
"fee": transaction.metadata.fee,
"kind": transaction.metadata.kind,
"receipt": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
},
"type": "ContractCall"
},
"nonce": 4064,
"position": {
"index": 1
},
Expand Down Expand Up @@ -123,6 +124,7 @@
},
"type": "ContractCall"
},
"nonce": 4064,
"position": {
"index": 1
},
Expand Down Expand Up @@ -200,6 +202,7 @@
},
"type": "ContractCall"
},
"nonce": 4064,
"position": {
"index": 1
},
Expand Down Expand Up @@ -278,6 +281,7 @@
},
"type": "ContractCall"
},
"nonce": 4064,
"position": {
"index": 1
},
Expand Down Expand Up @@ -355,6 +359,7 @@
},
"type": "ContractCall"
},
"nonce": 4064,
"position": {
"index": 1
},
Expand Down Expand Up @@ -434,6 +439,7 @@
},
"type": "ContractCall"
},
"nonce": 4064,
"position": {
"index": 1
},
Expand Down Expand Up @@ -512,6 +518,7 @@
},
"type": "ContractCall"
},
"nonce": 4064,
"position": {
"index": 1
},
Expand Down Expand Up @@ -590,6 +597,7 @@
},
"type": "ContractCall"
},
"nonce": 4064,
"position": {
"index": 1
},
Expand Down Expand Up @@ -669,6 +677,7 @@
},
"type": "ContractCall"
},
"nonce": 4064,
"position": {
"index": 1
},
Expand Down Expand Up @@ -747,6 +756,7 @@
},
"type": "ContractCall"
},
"nonce": 4064,
"position": {
"index": 1
},
Expand Down Expand Up @@ -825,6 +835,7 @@
},
"type": "ContractCall"
},
"nonce": 4064,
"position": {
"index": 1
},
Expand Down Expand Up @@ -903,6 +914,7 @@
},
"type": "ContractCall"
},
"nonce": 4064,
"position": {
"index": 1
},
Expand Down Expand Up @@ -981,6 +993,7 @@
},
"type": "ContractCall"
},
"nonce": 4064,
"position": {
"index": 1
},
Expand Down Expand Up @@ -1064,6 +1077,7 @@
},
"type": "ContractDeployment"
},
"nonce": 33,
"position": {
"index": 1
},
Expand Down

0 comments on commit 95b2dd7

Please sign in to comment.