@tradeport/sui-trading-sdk 0.0.3 → 0.0.4
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 +6 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/SuiTradingClient.ts +2 -1
package/package.json
CHANGED
package/src/SuiTradingClient.ts
CHANGED
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
withdrawKioskProfits,
|
|
29
29
|
type WithdrawKioskProfits,
|
|
30
30
|
} from './methods/withdrawKioskProfits/withdrawKioskProfits';
|
|
31
|
+
import { addLeadingZerosAfter0x } from './utils/addLeadingZerosAfter0x';
|
|
31
32
|
|
|
32
33
|
type ApiConfig = {
|
|
33
34
|
apiUser: string;
|
|
@@ -123,7 +124,7 @@ class SuiTradingClient {
|
|
|
123
124
|
walletAddress,
|
|
124
125
|
});
|
|
125
126
|
|
|
126
|
-
txBlock.setSenderIfNotSet(walletAddress);
|
|
127
|
+
txBlock.setSenderIfNotSet(addLeadingZerosAfter0x(walletAddress));
|
|
127
128
|
const rawTransaction = await txBlock.build({ client: suiClient });
|
|
128
129
|
await suiClient.dryRunTransactionBlock({
|
|
129
130
|
transactionBlock: rawTransaction,
|