Commit 15488a32 authored by madengji's avatar madengji Committed by vipwzw

format

parent d8437818
......@@ -237,7 +237,7 @@ func createTokenTxFee(cmd *cobra.Command, args []string) {
var params rpctypes.Query4Jrpc
params.Execer = mixTy.MixX
params.FuncName = "TokenFeeAddr"
req := mixTy.TokenTxFee{
req := mixTy.TokenTxFeeAddrReq{
AssetExec: exec,
AssetSymbol: symbol,
}
......
......@@ -120,7 +120,7 @@ func (m *Mix) Query_VerifyProof(req *mixTy.VerifyProofInfo) (types.Message, erro
}
// Query_TokenFeeAddr 私对私token转账,代扣地址查询, 需预先转账主代币到相应资产地址下面才能完成私对私的转账,代扣地址coins不能提回
func (m *Mix) Query_TokenFeeAddr(req *mixTy.TokenTxFee) (types.Message, error) {
func (m *Mix) Query_TokenFeeAddr(req *mixTy.TokenTxFeeAddrReq) (types.Message, error) {
if req == nil || len(req.AssetExec) == 0 || len(req.AssetSymbol) == 0 {
return nil, errors.Wrapf(types.ErrInvalidParam, "asset exec or symbol not filled")
}
......
......@@ -36,6 +36,11 @@ message PaymentKey{
string encryptKey = 3;
}
message TokenTxFeeAddrReq{
string assetExec = 1;
string assetSymbol = 2;
}
enum MixConfigType{
Verify = 0;
//register unify authorize pubkey
......
This diff is collapsed.
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