Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sidecar-client-fabric
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
sidecar-client-fabric
Commits
ff701a30
Commit
ff701a30
authored
Aug 16, 2021
by
jzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:fix interchainCharge
parent
14604298
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
contracts.zip
example/contracts.zip
+0
-0
transfer.go
example/contracts/src/transfer/transfer.go
+2
-2
No files found.
example/contracts.zip
View file @
ff701a30
No preview for this file type
example/contracts/src/transfer/transfer.go
View file @
ff701a30
...
...
@@ -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
,
"
tru
e"
},
","
)
args
:=
strings
.
Join
([]
string
{
sender
,
receiver
,
amountArg
,
"
fals
e"
},
","
)
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"
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment