Skip to content

Commit

Permalink
Add gas config to createUnsignedTx query
Browse files Browse the repository at this point in the history
  • Loading branch information
longfin committed Jun 29, 2023
1 parent 49a65a9 commit c0fd391
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 c0fd391

Please sign in to comment.