Comparing version 0.0.16 to 0.0.17
@@ -18,4 +18,9 @@ const sui = require('@mysten/sui.js'); | ||
this._address = null; | ||
if (params.signer) { | ||
this._signer = params.signer; | ||
if (this._signer && this._signer.connectedAddress) { | ||
this._address = this._signer.connectedAddress; | ||
} | ||
} else if (params.keypair) { | ||
@@ -90,4 +95,2 @@ this._keypair = params.keypair; | ||
this._address = null; | ||
this._packages = {}; | ||
@@ -94,0 +97,0 @@ } |
{ | ||
"name": "suidouble", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "Set of provider, package and object classes for javascript representation of Sui Move smart contracts. Use same code for publishing, upgrading, integration testing, interaction with smart contracts and integration in browser web3 dapps", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -308,2 +308,11 @@ # suidouble | ||
### Unit tests | ||
```bash | ||
npm install | ||
npm run tests | ||
``` | ||
Take a look at [unit tests](test) code for some inspiration. | ||
### Todo | ||
@@ -310,0 +319,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
174239
30
2468
323