@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tradeport/sui-trading-sdk",
3
3
  "license": "MIT",
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
@@ -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,