cmd/brick/exec/deployContract.go
Method deployContract.readDefFile
has 6 return statements (exceeds 4 allowed). Open
Open
func (c *deployContract) readDefFile(defPath string) ([]byte, error) {
if strings.HasPrefix(defPath, "http") {
// search in the web
req, err := http.NewRequest("GET", defPath, nil)
if err != nil {
Method deployContract.parse
has 5 return statements (exceeds 4 allowed). Open
Open
func (c *deployContract) parse(args string) (string, *big.Int, string, string, string, error) {
splitArgs := context.SplitSpaceAndAccent(args, false)
if len(splitArgs) < 4 {
return "", nil, "", "", "", fmt.Errorf("need 4 arguments. usage: %s", c.Usage())
}