@@ -43,16 +43,16 @@ yarn add bnc-assist
43
43
#### Script Tag
44
44
45
45
The library uses [ semantic versioning] ( https://semver.org/spec/v2.0.0.html ) .
46
- The current version is 0.9.1 .
46
+ The current version is 0.9.2 .
47
47
There are minified and non-minified versions.
48
48
Put this script at the top of your ` <head> `
49
49
50
50
``` html
51
- <script src =" https://assist.blocknative.com/0-9-1 /assist.js" ></script >
51
+ <script src =" https://assist.blocknative.com/0-9-2 /assist.js" ></script >
52
52
53
53
<!-- OR... -->
54
54
55
- <script src =" https://assist.blocknative.com/0-9-1 /assist.min.js" ></script >
55
+ <script src =" https://assist.blocknative.com/0-9-2 /assist.min.js" ></script >
56
56
```
57
57
58
58
### Initialize the Library
@@ -263,12 +263,14 @@ The function that is defined on the `handleNotificationEvent` property of the co
263
263
inlineCustomMsgs: Object | Boolean , // the inline custom messages passed to the transaction
264
264
reason: String , // reason for error type notifications
265
265
transaction: {
266
- id: String , // internal unique id for the transaction
266
+ id: String , // internal unique id for the transaction (remains constant even if transaction hash changes due to speedup or cancel)
267
267
from: String , // the address the transaction was sent from
268
268
gas: String , // the gas limit of the transaction
269
269
gasPrice: String , // the gas price of the transaction
270
270
to: String , // the address the transaction was sent to
271
271
value: String // the value of the transaction
272
+ hash: String // the transaction hash (updated to a new hash if transaction is sped up or cancelled)
273
+ originalHash: String // if transaction was sped up or cancelled, the original transaction hash
272
274
},
273
275
wallet: {
274
276
address: String , // the account address of the wallet in use
0 commit comments