@shapeshiftoss/swapper 15.3.0 → 15.3.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.
|
@@ -226,6 +226,8 @@ exports.performIbcTransfer = performIbcTransfer;
|
|
|
226
226
|
// TODO: move to chain adapters
|
|
227
227
|
const buildTradeTx = async ({ osmoAddress, adapter, accountNumber, buyAssetDenom, sellAssetDenom, sellAmount, gas, wallet, }) => {
|
|
228
228
|
const responseAccount = await adapter.getAccount(osmoAddress);
|
|
229
|
+
// note - this is a cosmos sdk specific account_number, not a bip44Params accountNumber
|
|
230
|
+
const account_number = responseAccount.chainSpecific.accountNumber || '0';
|
|
229
231
|
const sequence = responseAccount.chainSpecific.sequence || '0';
|
|
230
232
|
const tx = {
|
|
231
233
|
memo: '',
|
|
@@ -265,7 +267,7 @@ const buildTradeTx = async ({ osmoAddress, adapter, accountNumber, buyAssetDenom
|
|
|
265
267
|
tx,
|
|
266
268
|
addressNList: (0, chain_adapters_1.toAddressNList)(bip44Params),
|
|
267
269
|
chain_id: caip_1.CHAIN_REFERENCE.OsmosisMainnet,
|
|
268
|
-
account_number
|
|
270
|
+
account_number,
|
|
269
271
|
sequence,
|
|
270
272
|
},
|
|
271
273
|
wallet,
|
package/package.json
CHANGED