Skip to content
Open
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions cmd/utils/scripts/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func CreatePegoutContract(
}
return rootstock.NewPegoutContractImpl(
rskClient,
env.Rsk.PeginContractAddress,
env.Rsk.PegoutContractAddress,
rootstock.NewPegoutContractAdapter(pegoutContract),
Comment on lines 95 to 98
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current tests for CreatePegoutContract pass an env with PegoutContractAddress unset, so they won’t fail if the wrong env field is used (as happened previously). Consider updating the test to set a distinct PegoutContractAddress and assert contract.GetAddress() matches it, to prevent regressions.

Copilot uses AI. Check for mistakes.
rskWallet,
rootstock.RetryParams{Retries: 0, Sleep: 0},
Expand Down Expand Up @@ -123,7 +123,7 @@ func CreateDiscoveryContract(
}
return rootstock.NewDiscoveryContractImpl(
rskClient,
env.Rsk.PeginContractAddress,
env.Rsk.DiscoveryAddress,
discoveryContract,
Comment on lines 124 to 127
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current tests for CreateDiscoveryContract don’t set DiscoveryAddress, so they won’t catch regressions where the wrong env field is wired. Consider setting a non-empty DiscoveryAddress in the test and asserting contract.GetAddress() equals it.

Copilot uses AI. Check for mistakes.
rskWallet,
rootstock.RetryParams{Retries: 0, Sleep: 0},
Expand Down
Loading