Skip to content

Commit

Permalink
Bump nitro validator after audit (and regenerate bindings) (#58)
Browse files Browse the repository at this point in the history
* Bump nitro-validator library

* Re-gen bindings

* Bump again

* Regen bindings
  • Loading branch information
mdehoog authored Jan 13, 2025
1 parent 55a09df commit dd672ea
Show file tree
Hide file tree
Showing 8 changed files with 402 additions and 48 deletions.
196 changes: 170 additions & 26 deletions bindings/cert_manager.go

Large diffs are not rendered by default.

237 changes: 221 additions & 16 deletions bindings/deploy_chain.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/output_oracle.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/portal.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/system_config_global.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/script/DeploySystem.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ contract DeploySystem is Deploy {

uint256 timestamp = vm.getBlockTimestamp();
vm.warp(1732580000);
ICertManager(certManagerAddress).verifyCert(cert, true, keccak256(parent));
ICertManager(certManagerAddress).verifyCACert(cert, keccak256(parent));
vm.warp(timestamp);
}

Expand Down
7 changes: 6 additions & 1 deletion register-signer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ func main() {
panic(err)
}
if len(verified) == 0 {
tx, err := certManager.VerifyCert(auth, cert, ca, parentCertHash)
var tx *types.Transaction
if ca {
tx, err = certManager.VerifyCACert(auth, cert, parentCertHash)
} else {
tx, err = certManager.VerifyClientCert(auth, cert, parentCertHash)
}
if err != nil {
panic(err)
}
Expand Down

0 comments on commit dd672ea

Please sign in to comment.