Skip to content

Commit

Permalink
Add back SetGasLimit as deprecated method for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nozim committed Aug 31, 2023
1 parent e78be72 commit 6dbba57
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,14 @@ func (t *Transaction) SetReferenceBlockID(blockID Identifier) *Transaction {
return t
}

// SetGasLimit sets the gas limit for this transaction.
//
// Deprecated: Use SetComputationLimit Instead
func (t *Transaction) SetGasLimit(limit uint64) *Transaction {
t.GasLimit = limit
return t
}

// SetComputeLimit sets the compute limit for this transaction.
func (t *Transaction) SetComputeLimit(limit uint64) *Transaction {
t.GasLimit = limit
Expand Down

0 comments on commit 6dbba57

Please sign in to comment.