Skip to content

Commit

Permalink
feat(js): Make some async methods on TransactionBuilder sync (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
btwiuse authored Aug 15, 2024
1 parent 6d3c16c commit fa422c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/src/transaction-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class TransactionBuilder<ResponseType> {
* ## Set value for transaction
* @param value
*/
public async withValue(value: bigint) {
public withValue(value: bigint) {
switch (this._tx.method.method) {
case 'uploadProgram':
case 'createProgram': {
Expand All @@ -245,7 +245,7 @@ export class TransactionBuilder<ResponseType> {
* ## Set gas for transaction
* @param gas
*/
public async withGas(gas: bigint) {
public withGas(gas: bigint) {
switch (this._tx.method.method) {
case 'uploadProgram':
case 'createProgram': {
Expand Down

0 comments on commit fa422c2

Please sign in to comment.