agents/domains/evm/evm.go
Function NewEVM
has 52 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func NewEVM(ctx context.Context, name string, domain config.DomainConfig, chainRPCURL string) (domains.DomainClient, error) {
underlyingClient, err := chain.NewFromURL(ctx, chainRPCURL)
if err != nil {
return nil, fmt.Errorf("could not get evm: %w", err)
}
Function NewEVM
has 9 return statements (exceeds 4 allowed). Open
Open
func NewEVM(ctx context.Context, name string, domain config.DomainConfig, chainRPCURL string) (domains.DomainClient, error) {
underlyingClient, err := chain.NewFromURL(ctx, chainRPCURL)
if err != nil {
return nil, fmt.Errorf("could not get evm: %w", err)
}