diff --git a/transactions/transaction.go b/transactions/transaction.go index 895e2139..b1cd4556 100644 --- a/transactions/transaction.go +++ b/transactions/transaction.go @@ -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) @@ -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 }