Skip to content

Commit

Permalink
fix : TestWemixBackends$
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-shin-wt committed Jun 7, 2024
1 parent eaee291 commit f7ee599
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions wemix/bind/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,6 @@ func DeployGovContracts(opts *bind.TransactOpts, backend iBackend, optionDomains
)

// deploy registry
if address, tx, contract, err := DeployRegistry(opts, backend); err != nil {
return nil, errors.Wrap(err, "DeployRegistry")
} else {
logger.Info(fmt.Sprintf("Deploying Registry at %s...", address))
txPool.AppendTx(tx, nil)
gov.address.Registry, gov.Registry = address, contract
}

if err := txPool.AppendDeployTx(func(opts *bind.TransactOpts, backend bind.ContractBackend) (tx *types.Transaction, err error) {
gov.address.Registry, tx, gov.Registry, err = DeployRegistry(opts, backend)
logger.Info(fmt.Sprintf("Deploying Registry at %s...", gov.address.Registry))
Expand Down Expand Up @@ -500,7 +492,7 @@ func newUUPSContracts(
) error {
address, err := cfg.registry.GetContractAddress(cfg.callOpts, metclient.ToBytes32(name))
if err != nil {
return err
return errors.Wrap(err, name)
}
return callback(address)
}
Expand Down

0 comments on commit f7ee599

Please sign in to comment.