Skip to content

Commit

Permalink
VRF-784: add contract loader client for BSC to run CTF tests there (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
iljapavlovs authored Dec 5, 2023
1 parent 006e3c7 commit 6cc8120
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 @@ -71,6 +71,8 @@ func NewContractLoader(bcClient blockchain.EVMClient, logger zerolog.Logger) (Co
return &PolygonZkEvmContractLoader{NewEthereumContractLoader(clientImpl, logger)}, nil
case *blockchain.WeMixClient:
return &WeMixContractLoader{NewEthereumContractLoader(clientImpl, logger)}, nil
case *blockchain.BSCClient:
return &BSCContractLoader{NewEthereumContractLoader(clientImpl, logger)}, nil
}
return nil, errors.New("unknown blockchain client implementation for contract Loader, register blockchain client in NewContractLoader")
}
Expand Down Expand Up @@ -119,6 +121,11 @@ type WeMixContractLoader struct {
*EthereumContractLoader
}

// BSCContractLoader wraps ethereum contract deployments for BSC
type BSCContractLoader 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 6cc8120

Please sign in to comment.