File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -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.7.1 .
46
+ The current version is 0.7.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-7-1 /assist.js" ></script >
51
+ <script src =" https://assist.blocknative.com/0-7-2 /assist.js" ></script >
52
52
53
53
<!-- OR... -->
54
54
55
- <script src =" https://assist.blocknative.com/0-7-1 /assist.min.js" ></script >
55
+ <script src =" https://assist.blocknative.com/0-7-2 /assist.min.js" ></script >
56
56
```
57
57
58
58
### Initialize the Library
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " bnc-assist" ,
3
- "version" : " 0.7.1 " ,
3
+ "version" : " 0.7.2 " ,
4
4
"description" : " Blocknative Assist js library for Dapp developers" ,
5
5
"main" : " lib/assist.min.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -41,13 +41,17 @@ function sendTransaction(
41
41
)
42
42
43
43
// Check user is ready to make the transaction
44
- const [ sufficientBalance ] = await Promise . all ( [
44
+ const [ sufficientBalance , ready ] = await Promise . all ( [
45
45
hasSufficientBalance ( transactionParams ) ,
46
46
prepareForTransaction ( 'activePreflight' ) . catch (
47
47
handleError ( { resolve, reject, callback } )
48
48
)
49
49
] )
50
50
51
+ if ( ! ready ) {
52
+ return
53
+ }
54
+
51
55
// Make sure that we have from address in txOptions
52
56
if ( ! txOptions . from ) {
53
57
txOptions . from = state . accountAddress
You can’t perform that action at this time.
0 commit comments