Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/wild-rules-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@smartcontractkit/mcms": minor
---

Increase gas budget for SUI
2 changes: 2 additions & 0 deletions sdk/sui/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,11 @@ func (e Executor) ExecuteOperation(
stateObj := bind.Object{Id: e.mcmsObj}
clockObj := bind.Object{Id: "0x6"} // Clock object ID in Sui

gasBudget := uint64(UpgradeGasBudget)
opts := &bind.CallOpts{
Signer: e.signer,
WaitForExecution: true,
GasBudget: &gasBudget,
}

toAddress, err := AddressFromHex(op.Transaction.To)
Expand Down
7 changes: 6 additions & 1 deletion sdk/sui/timelock_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,12 @@ func (t *TimelockExecutor) Execute(
return types.TransactionResult{}, fmt.Errorf("failed to execute batch: %w", err)
}

opts := &bind.CallOpts{Signer: t.signer, WaitForExecution: true}
gasBudget := uint64(UpgradeGasBudget)
opts := &bind.CallOpts{
Signer: t.signer,
WaitForExecution: true,
GasBudget: &gasBudget,
}

ptb := transaction.NewTransaction()
executeCallback, err := t.mcms.Bound().AppendPTB(ctx, opts, ptb, timelockExecuteCall)
Expand Down
Loading