@orderly.network/core 2.8.8 → 2.8.9
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/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -5595,7 +5595,7 @@ var Assets = class {
|
|
|
5595
5595
|
if (!this.account.stateValue.address) {
|
|
5596
5596
|
throw new Error("account address is required");
|
|
5597
5597
|
}
|
|
5598
|
-
const { chainId, token, allowCrossChainWithdraw, decimals } = inputs;
|
|
5598
|
+
const { chainId, token, allowCrossChainWithdraw, decimals, receiver } = inputs;
|
|
5599
5599
|
let { amount } = inputs;
|
|
5600
5600
|
if (typeof amount === "number") {
|
|
5601
5601
|
amount = amount.toString();
|
|
@@ -5607,7 +5607,7 @@ var Assets = class {
|
|
|
5607
5607
|
const nonce = await this.getWithdrawalNonce();
|
|
5608
5608
|
const timestamp = getTimestamp();
|
|
5609
5609
|
const messageData = {
|
|
5610
|
-
receiver: this.account.stateValue.address,
|
|
5610
|
+
receiver: receiver || this.account.stateValue.address,
|
|
5611
5611
|
token,
|
|
5612
5612
|
brokerId: this.configStore.get("brokerId"),
|
|
5613
5613
|
amount: this.account.walletAdapter.parseUnits(amount, decimals),
|