You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(tokengen): inject the public params into the chaincode package
GeneratePackage matched the suffix
github.com/LFDT-Panurus/panurus/token/tcc/params.go
but the file holding the public parameters lives at
token/services/network/fabric/tcc/params.go
(the token/tcc layout is a leftover of the token-sdk move). The packager
passes the absolute path of every file it packages, so the replacer never
fired and `tokengen ... --cc` produced a package still carrying the
placeholder `var Params = ``', i.e. a token chaincode without public
parameters.
The integration harness got this right, so the two definitions had
silently drifted apart. Move the chaincode import path, the params file
suffix and the params template into a single package in the root module,
shared by tokengen and by the harness, and use it on both sides.
Cover the replacer with a test that fails on the old suffix.
Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>
0 commit comments