Skip to content

Commit

Permalink
chore: disable bridge contract bytecode check
Browse files Browse the repository at this point in the history
  • Loading branch information
wwestgarth committed Aug 16, 2024
1 parent 07ef744 commit a96f441
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions core/client/eth/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,6 @@ func (c *PrimaryClient) UpdateEthereumConfig(ctx context.Context, ethConfig *typ
return fmt.Errorf("updated chain ID does not match the one set during start up, expected %v got %v", ethConfig.ChainID(), chainID)
}

if err := c.verifyCollateralContract(ctx, ethConfig); err != nil {
return fmt.Errorf("failed to verify collateral bridge contract: %w", err)
}

if err := c.verifyMultisigContract(ctx, ethConfig); err != nil {
return fmt.Errorf("failed to verify multisig control contract: %w", err)
}

c.ethConfig = ethConfig

return nil
Expand Down Expand Up @@ -171,19 +163,3 @@ func (c *PrimaryClient) VerifyContract(ctx context.Context, address ethcommon.Ad

return nil
}

func (c *PrimaryClient) verifyCollateralContract(ctx context.Context, ethConfig *types.EthereumConfig) error {
if address := ethConfig.CollateralBridge(); address.HasAddress() {
return c.VerifyContract(ctx, address.Address(), ContractHashes["collateral"])
}

return nil
}

func (c *PrimaryClient) verifyMultisigContract(ctx context.Context, ethConfig *types.EthereumConfig) error {
if address := ethConfig.MultiSigControl(); address.HasAddress() {
return c.VerifyContract(ctx, address.Address(), ContractHashes["multisig"])
}

return nil
}

0 comments on commit a96f441

Please sign in to comment.