Commit de15b6e6 authored by hezhengjun's avatar hezhengjun

add test file

parent c1cd62b7
This diff is collapsed.
...@@ -256,7 +256,7 @@ func (action *evmxgoAction) mint(mint *evmxgotypes.EvmxgoMint, tx2lock *types.Tr ...@@ -256,7 +256,7 @@ func (action *evmxgoAction) mint(mint *evmxgotypes.EvmxgoMint, tx2lock *types.Tr
return nil, types.ErrInvalidParam return nil, types.ErrInvalidParam
} }
cfg := action.api.GetConfig() cfg := action.api.GetConfig()
if err := checkMinePara(mint, tx2lock); nil != err { if err := checkMintPara(mint, tx2lock); nil != err {
return nil, err return nil, err
} }
......
...@@ -16,7 +16,7 @@ const ( ...@@ -16,7 +16,7 @@ const (
//solidity interface: function lock(address _recipient, address _token, uint256 _amount) //solidity interface: function lock(address _recipient, address _token, uint256 _amount)
//铸币交易的接收人必须与发起lock交易时填写的接收地址一致 //铸币交易的接收人必须与发起lock交易时填写的接收地址一致
func checkMinePara(mint *evmxgotypes.EvmxgoMint, tx2lock *types.Transaction) error { func checkMintPara(mint *evmxgotypes.EvmxgoMint, tx2lock *types.Transaction) error {
var action evmtypes.EVMContractAction var action evmtypes.EVMContractAction
if err := types.Decode(tx2lock.Payload, &action); nil != err { if err := types.Decode(tx2lock.Payload, &action); nil != err {
return err return err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment