@orderly.network/core 2.8.8 → 2.8.9-alpha.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/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.mjs
CHANGED
|
@@ -5589,7 +5589,7 @@ var Assets = class {
|
|
|
5589
5589
|
if (!this.account.stateValue.address) {
|
|
5590
5590
|
throw new Error("account address is required");
|
|
5591
5591
|
}
|
|
5592
|
-
const { chainId, token, allowCrossChainWithdraw, decimals } = inputs;
|
|
5592
|
+
const { chainId, token, allowCrossChainWithdraw, decimals, receiver } = inputs;
|
|
5593
5593
|
let { amount } = inputs;
|
|
5594
5594
|
if (typeof amount === "number") {
|
|
5595
5595
|
amount = amount.toString();
|
|
@@ -5601,7 +5601,7 @@ var Assets = class {
|
|
|
5601
5601
|
const nonce = await this.getWithdrawalNonce();
|
|
5602
5602
|
const timestamp = getTimestamp();
|
|
5603
5603
|
const messageData = {
|
|
5604
|
-
receiver: this.account.stateValue.address,
|
|
5604
|
+
receiver: receiver || this.account.stateValue.address,
|
|
5605
5605
|
token,
|
|
5606
5606
|
brokerId: this.configStore.get("brokerId"),
|
|
5607
5607
|
amount: this.account.walletAdapter.parseUnits(amount, decimals),
|