Commit ff701a30 authored by jzhe's avatar jzhe

fix:fix interchainCharge

parent 14604298
No preview for this file type
......@@ -118,7 +118,7 @@ func (t *Transfer) transfer(stub shim.ChaincodeStubInterface, args []string) pb.
return shim.Error(err.Error())
}
args := strings.Join([]string{sender, receiver, amountArg, "true"}, ",")
args := strings.Join([]string{sender, receiver, amountArg, "false"}, ",")
argsRb := strings.Join([]string{sender, amountArg}, ",")
b := util.ToChaincodeArgs(emitInterchainEventFunc, dstServiceID, "interchainCharge,,interchainRollback", args, "", argsRb)
response := stub.InvokeChaincode(brokerContractName, b, channelID)
......@@ -166,7 +166,7 @@ func (t *Transfer) setBalance(stub shim.ChaincodeStubInterface, args []string) p
// charge user,amount
func (t *Transfer) interchainCharge(stub shim.ChaincodeStubInterface, args []string) pb.Response {
if len(args) != 3 {
if len(args) != 4 {
return shim.Error("incorrect number of arguments, expect 3")
}
......
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