@dynamic-labs/sui 4.13.0 → 4.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/wallet/SuiWallet.cjs +2 -2
- package/src/wallet/SuiWallet.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.14.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.13.0...v4.14.0) (2025-04-25)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* if you are using zksync, note that the ZKsyncSmartWalletConnectors moved to @dynamic-labs/ethereum-aa-zksync and you will need to install the package and import from there ([#8585](https://github.com/dynamic-labs/dynamic-auth/issues/8585)) ([2bd8c49](https://github.com/dynamic-labs/dynamic-auth/commit/2bd8c4959081ab798da5c411825bf60bb58c1605))
|
|
8
|
+
* edit view top padding ([#8582](https://github.com/dynamic-labs/dynamic-auth/issues/8582)) ([18df9fa](https://github.com/dynamic-labs/dynamic-auth/commit/18df9fa294b299b260b71b5f2faab7f98b6e4492))
|
|
9
|
+
|
|
2
10
|
## [4.13.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.12.4...v4.13.0) (2025-04-24)
|
|
3
11
|
|
|
4
12
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/sui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.14.0",
|
|
4
4
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"@mysten/wallet-standard": "0.13.29",
|
|
23
23
|
"@mysten/sui": "1.24.0",
|
|
24
24
|
"text-encoding": "0.7.0",
|
|
25
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
26
|
-
"@dynamic-labs/logger": "4.
|
|
27
|
-
"@dynamic-labs/rpc-providers": "4.
|
|
28
|
-
"@dynamic-labs/types": "4.
|
|
29
|
-
"@dynamic-labs/utils": "4.
|
|
30
|
-
"@dynamic-labs/wallet-book": "4.
|
|
31
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
25
|
+
"@dynamic-labs/assert-package-version": "4.14.0",
|
|
26
|
+
"@dynamic-labs/logger": "4.14.0",
|
|
27
|
+
"@dynamic-labs/rpc-providers": "4.14.0",
|
|
28
|
+
"@dynamic-labs/types": "4.14.0",
|
|
29
|
+
"@dynamic-labs/utils": "4.14.0",
|
|
30
|
+
"@dynamic-labs/wallet-book": "4.14.0",
|
|
31
|
+
"@dynamic-labs/wallet-connector-core": "4.14.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {}
|
|
34
34
|
}
|
package/src/wallet/SuiWallet.cjs
CHANGED
|
@@ -34,8 +34,8 @@ class SuiWallet extends walletConnectorCore.Wallet {
|
|
|
34
34
|
}
|
|
35
35
|
const transaction = new transactions.Transaction();
|
|
36
36
|
const mistAmount = Number(amount) * constants.MIST_PER_SUI;
|
|
37
|
-
transaction
|
|
38
|
-
transaction
|
|
37
|
+
// Let the transaction calculate gas automatically
|
|
38
|
+
// https://sdk.mystenlabs.com/typescript/transaction-building/gas#gas-price
|
|
39
39
|
const [coin] = transaction.splitCoins(transaction.gas, [mistAmount]);
|
|
40
40
|
transaction.transferObjects([coin], toAddress);
|
|
41
41
|
const { bytes } = yield transactionFeature.signAndExecuteTransaction({
|
package/src/wallet/SuiWallet.js
CHANGED
|
@@ -30,8 +30,8 @@ class SuiWallet extends Wallet {
|
|
|
30
30
|
}
|
|
31
31
|
const transaction = new Transaction();
|
|
32
32
|
const mistAmount = Number(amount) * MIST_PER_SUI;
|
|
33
|
-
transaction
|
|
34
|
-
transaction
|
|
33
|
+
// Let the transaction calculate gas automatically
|
|
34
|
+
// https://sdk.mystenlabs.com/typescript/transaction-building/gas#gas-price
|
|
35
35
|
const [coin] = transaction.splitCoins(transaction.gas, [mistAmount]);
|
|
36
36
|
transaction.transferObjects([coin], toAddress);
|
|
37
37
|
const { bytes } = yield transactionFeature.signAndExecuteTransaction({
|