Skip to content

Commit

Permalink
Merge pull request #2106 from longfin/hotfix/create-utx-gas
Browse files Browse the repository at this point in the history
Add gas config to createUnsignedTx query
  • Loading branch information
longfin authored Jun 30, 2023
2 parents 49a65a9 + c0fd391 commit a6a155a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,12 @@ public TransactionHeadlessQuery(StandaloneContext standaloneContext)
new UnsignedTx(
new TxInvoice(
genesisHash: blockChain.Genesis.Hash,
actions: new TxActionList(new[] { action })),
new TxSigningMetadata(publicKey: publicKey, nonce: nonce));
actions: new TxActionList(new[] { action }),
gasLimit: action is ITransferAsset or ITransferAssets ? RequestPledge.DefaultRefillMead : 1L,
maxGasPrice: 1 * Currencies.Mead
),
new TxSigningMetadata(publicKey: publicKey, nonce: nonce)
);
return Convert.ToBase64String(unsignedTransaction.SerializeUnsignedTx().ToArray());
});

Expand Down

0 comments on commit a6a155a

Please sign in to comment.