@@ -157,25 +157,26 @@ export async function reticketPointBetweenWallets({
157157 toBN(0)
158158 );
159159
160− let txPairs = await Promise.all(
161− txs.map(async (tx, idx) => {
162− const stx = await signTransaction({
163− wallet: fromWallet,
164− walletType: fromWalletType,
165− walletHdPath: fromWalletHdPath,
166− networkType,
167− txn: tx,
168− nonce: inviteNonce + idx,
169− chainId,
170− gasPrice: suggestedGasPrice.toFixed(),
171− gasLimit: tx.gas,
172− });
173− return {
174− raw: hexify(stx.serialize()),
175− signed: stx,
176− };
177− })
178− );
160+ let txPairs = [];
161+
162+ // Must be done in serial else hardware will give nonce errors
163+ for (let i = 0; i < txs.length; i++) {
164+ const stx = await signTransaction({
165+ wallet: fromWallet,
166+ walletType: fromWalletType,
167+ walletHdPath: fromWalletHdPath,
168+ networkType,
169+ txn: txs[i],
170+ nonce: inviteNonce + i,
171+ chainId,
172+ gasPrice: suggestedGasPrice.toFixed(),
173+ gasLimit: txs[i].gas,
174+ });
175+ txPairs.push({
176+ raw: hexify(stx.serialize()),
177+ signed: stx,
178+ });
179+ }
179180
180181 inviteNonce = inviteNonce + txs.length;
181182