Skip to content

Commit

Permalink
Change SetGasLimit to SetComputeLimit
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Mar 4, 2024
1 parent 0388876 commit 6f8aadc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transactions/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func addAccountContractWithArgs(

script := fmt.Sprintf(addAccountContractTemplate, txArgs, addArgs)
tx.SetScript([]byte(script))
tx.SetGasLimit(flow.DefaultTransactionGasLimit)
tx.SetComputeLimit(flow.DefaultTransactionGasLimit)

t := &Transaction{tx: tx}
err := t.SetSigner(signer)
Expand Down Expand Up @@ -272,7 +272,7 @@ func (t *Transaction) SetBlockReference(block *flow.Block) *Transaction {

// SetComputeLimit sets the gas limit for transaction.
func (t *Transaction) SetComputeLimit(limit uint64) *Transaction {
t.tx.SetGasLimit(limit)
t.tx.SetComputeLimit(limit)
return t
}

Expand Down

0 comments on commit 6f8aadc

Please sign in to comment.