You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I create 2 txs one using an transaction.Transaction and the other a raw transaction in this way:
let params = await algodClient.getTransactionParams();
let suggestedParams = {
"genesisHash": params.genesishashb64,
"genesisID": params.genesisID,
"firstRound": params.lastRound,
"lastRound": params.lastRound + 1000,
"fee": params.minFee,
"flatFee": true
};
let oracleFeeTx = algosdk.makePaymentTxnWithSuggestedParams(consumerAccount.addr,
oracleOwner, oracleFee, undefined,
new Uint8Array(0), suggestedParams);
let oracleTx = {
"from": oracleTealAddr,
"to": oracleTealAddr,
"fee": params.minFee,
"flatFee": true,
"amount": 0,
"firstRound": params.lastRound,
"lastRound": params.lastRound + 1000,
"genesisID": params.genesisID,
"genesisHash": params.genesishashb64,
"type": "pay"
};
// Store both transactions
let txns = [oracleFeeTx, oracleTx];
// Group both transactions
let txgroup = algosdk.assignGroupID(txns);
// Sign each transaction in the group with
// correct key
let signed = []
oracleFeeTxSigned = oracleFeeTx.signTxn(consumerAccount.sk);
signed.push(oracleFeeTxSigned);
let oracleTxSigned = algosdk.signLogicSigTransaction(oracleTx, lsig);
signed.push(oracleTxSigned.blob)
let tx = (await algodClient.sendRawTransactions(signed));
I throws and error when sending the transactions:
text:"TransactionPool.Remember: transactionGroup: inconsistent group values: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA != AB7RGLOYELISNZCFA5XJOI2IXZV2TG4LXAH5ZXD2X6B3JLB52GBQ"
If I change the code to use transaction.Transaction objects for all the txs in the group it works:
let params = await algodClient.getTransactionParams();
let suggestedParams = {
"genesisHash": params.genesishashb64,
"genesisID": params.genesisID,
"firstRound": params.lastRound,
"lastRound": params.lastRound + 1000,
"fee": params.minFee,
"flatFee": true
};
let oracleFeeTx = algosdk.makePaymentTxnWithSuggestedParams(consumerAccount.addr,
oracleOwner, oracleFee, undefined,
new Uint8Array(0), suggestedParams);
let oracleTx = algosdk.makePaymentTxnWithSuggestedParams(oracleTealAddr,
oracleTealAddr, 0, undefined,
new Uint8Array(0), suggestedParams);
// Store both transactions
let txns = [oracleFeeTx, oracleTx];
// Group both transactions
let txgroup = algosdk.assignGroupID(txns);
// Sign each transaction in the group with
// correct key
let signed = []
oracleFeeTxSigned = oracleFeeTx.signTxn(consumerAccount.sk);
signed.push(oracleFeeTxSigned);
let oracleTxSigned = algosdk.signLogicSigTransactionObject(oracleTx, lsig);
signed.push(oracleTxSigned.blob)
let tx = (await algodClient.sendRawTransactions(signed));
If I create 2 txs one using an transaction.Transaction and the other a raw transaction in this way:
I throws and error when sending the transactions:
text:"TransactionPool.Remember: transactionGroup: inconsistent group values: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA != AB7RGLOYELISNZCFA5XJOI2IXZV2TG4LXAH5ZXD2X6B3JLB52GBQ"
If I change the code to use transaction.Transaction objects for all the txs in the group it works:
The transactions are in this block:
https://betanet.algoexplorer.io/block/4147872
The text was updated successfully, but these errors were encountered: