txflow-sdk 0.2.0 → 0.2.1
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/client.js +3 -3
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -155,7 +155,7 @@ export class TxFlowClient {
|
|
|
155
155
|
}
|
|
156
156
|
async withdraw(userWallet, params) {
|
|
157
157
|
const nonce = Date.now();
|
|
158
|
-
const signatureChainId = params.signatureChainId ?? "
|
|
158
|
+
const signatureChainId = params.signatureChainId ?? "66eee";
|
|
159
159
|
const message = {
|
|
160
160
|
ofinChain: "ofin",
|
|
161
161
|
destination: params.destination,
|
|
@@ -193,7 +193,7 @@ export class TxFlowClient {
|
|
|
193
193
|
const signature = await signUserAction(userWallet, USER_ACTION_DOMAIN, TRANSFER_TOKEN_TYPES, message);
|
|
194
194
|
return this.postExchange({
|
|
195
195
|
action: {
|
|
196
|
-
type: "
|
|
196
|
+
type: "tokenSend",
|
|
197
197
|
ofinChain: "ofin",
|
|
198
198
|
amount: params.amount,
|
|
199
199
|
fromAccountType: params.fromAccountType,
|
|
@@ -220,7 +220,7 @@ export class TxFlowClient {
|
|
|
220
220
|
const signature = await signUserAction(userWallet, USER_ACTION_DOMAIN, SEND_TOKEN_TYPES, message);
|
|
221
221
|
return this.postExchange({
|
|
222
222
|
action: {
|
|
223
|
-
type: "
|
|
223
|
+
type: "tokenSend",
|
|
224
224
|
ofinChain: "ofin",
|
|
225
225
|
toAddress: params.toAddress,
|
|
226
226
|
amount: params.amount,
|