-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
network.fabric: support FPC #207
Conversation
Signed-off-by: Angelo De Caro <[email protected]>
I created a follow up PR #208 to allow TCC to extract the tokenRequest from args. |
return chaincode.NewEndorseView( | ||
namespace, | ||
InvokeFunction, | ||
).WithNetwork( | ||
n.n.Name(), | ||
).WithChannel( | ||
n.ch.Name(), | ||
).WithSignerIdentity( | ||
signer, | ||
).WithTransientEntry( | ||
"token_request", requestRaw, | ||
).WithTxID( | ||
fabric.TxID{ | ||
Nonce: txID.Nonce, | ||
Creator: txID.Creator, | ||
}, | ||
).Endorse(context) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe you missed to remove the transient entry and pass the requestRaw
as parameter :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, fixed :)
Signed-off-by: Angelo De Caro <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now
If the token chaincode is a FPC, then we must pass the token request as an input not via transient.
This, at least, until FPC supports transient: hyperledger/fabric-private-chaincode#666
Signed-off-by: Angelo De Caro [email protected]