Sync from fork #74

Merged
0xmuralik merged 232 commits from murali/update-fork into main 2023-01-10 04:50:57 +00:00
Showing only changes of commit 60afa0222a - Show all commits

View File

@ -213,12 +213,10 @@ func NewCLILogger(cmd *cobra.Command) CLILogger {
} }
// New creates a new Network for integration tests or in-process testnets run via the CLI // New creates a new Network for integration tests or in-process testnets run via the CLI
// nosemgrep: missing-unlock-before-return
func New(l Logger, baseDir string, cfg Config) (*Network, error) { func New(l Logger, baseDir string, cfg Config) (*Network, error) {
// only one caller/test can create and use a network at a time // only one caller/test can create and use a network at a time
l.Log("acquiring test network lock") l.Log("acquiring test network lock")
lock.Lock() lock.Lock()
// defer lock.Unlock()
if !ethermint.IsValidChainID(cfg.ChainID) { if !ethermint.IsValidChainID(cfg.ChainID) {
return nil, fmt.Errorf("invalid chain-id: %s", cfg.ChainID) return nil, fmt.Errorf("invalid chain-id: %s", cfg.ChainID)