Skip to content

Commit

Permalink
Update for lint check errors
Browse files Browse the repository at this point in the history
  • Loading branch information
studyzy committed Oct 21, 2019
1 parent 7964a76 commit d9ff40f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ linters:
- errcheck
- lll
- gocyclo
- funlen
- godox
- stylecheck
disable-all: false
# presets:
# - bugs
Expand Down
3 changes: 0 additions & 3 deletions AdaptorErc20.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ func GetMappAddr(addr *adaptor.GetPalletOneMappingAddressInput,
return nil, adaptor.ErrNotFound
}
result.PalletOneAddress = resultStr

} else { //PTN地址 P开头
input.Function = "getMapEthAddr"
if addr.PalletOneAddress[0] != byte('P') {
Expand All @@ -165,7 +164,6 @@ func GetMappAddr(addr *adaptor.GetPalletOneMappingAddressInput,
}
addrHex := fmt.Sprintf("%x", addrBytes)
input.Args = append(input.Args, []byte(addrHex))

//
ret := new(common.Address)
err = QueryContractCall(&input, rpcParams, ret)
Expand All @@ -179,7 +177,6 @@ func GetMappAddr(addr *adaptor.GetPalletOneMappingAddressInput,
}
result.ChainAddress = resultStr
}

return &result, nil
}
func (aerc20 *AdaptorErc20) GetPalletOneMappingAddress(addr *adaptor.GetPalletOneMappingAddressInput) (
Expand Down
2 changes: 1 addition & 1 deletion balance.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
/*
* @author PalletOne core developers <dev@pallet.one>
* @date 2018
* @date 2018-2019
*/
package ethadaptor

Expand Down
2 changes: 0 additions & 2 deletions contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ func convertContractParams(paramsNew *[]interface{}, parsed *abi.ABI, method str
*paramsNew = append(*paramsNew, common.Hex2Bytes(str))
case abi.FixedPointTy: //#zxl#
case abi.FunctionTy: //#zxl#

}
}
}
Expand Down Expand Up @@ -230,7 +229,6 @@ func CreateContractInitialTx(input *adaptor.CreateContractInitialTxInput, rpcPar
//result.ContractAddr = address.String()

return &result, nil

}

func CreateContractInvokeTx(input *adaptor.CreateContractInvokeTxInput, rpcParams *RPCParams, netID int) (
Expand Down
1 change: 0 additions & 1 deletion spend.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ func SendTransaction(input *adaptor.SendTransactionInput, rpcParams *RPCParams)
result.TxID = tx.Hash().Bytes()

return &result, nil

}

func CreateETHTx(input *adaptor.CreateTransferTokenTxInput, rpcParams *RPCParams) (
Expand Down

0 comments on commit d9ff40f

Please sign in to comment.