Skip to content

Commit

Permalink
Adds WeMix contract loader
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-mehany committed Sep 28, 2023
1 parent 0cf45f6 commit 678b2c9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions integration-tests/contracts/contract_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ func NewContractLoader(bcClient blockchain.EVMClient, logger zerolog.Logger) (Co
return &PolygonContractLoader{NewEthereumContractLoader(clientImpl, logger)}, nil
case *blockchain.OptimismClient:
return &OptimismContractLoader{NewEthereumContractLoader(clientImpl, logger)}, nil
case *blockchain.WeMixClient:
return &WeMixContractLoader{NewEthereumContractLoader(clientImpl, logger)}, nil
}
return nil, errors.New("unknown blockchain client implementation for contract Loader, register blockchain client in NewContractLoader")
}
Expand Down Expand Up @@ -84,6 +86,11 @@ type OptimismContractLoader struct {
*EthereumContractLoader
}

// WeMixContractLoader wraps for WeMix
type WeMixContractLoader struct {
*EthereumContractLoader
}

// NewEthereumContractLoader returns an instantiated instance of the ETH contract Loader
func NewEthereumContractLoader(ethClient blockchain.EVMClient, logger zerolog.Logger) *EthereumContractLoader {
return &EthereumContractLoader{
Expand Down

0 comments on commit 678b2c9

Please sign in to comment.