@@ -17,7 +17,6 @@ import (
1717 api2 "github.com/hyperledger-labs/fabric-smart-client/integration/nwo/api"
1818 "github.com/hyperledger-labs/fabric-smart-client/integration/nwo/fsc"
1919 sfcnode "github.com/hyperledger-labs/fabric-smart-client/integration/nwo/fsc/node"
20- "github.com/hyperledger-labs/fabric-smart-client/platform/view/services/db/driver"
2120 common2 "github.com/hyperledger-labs/fabric-token-sdk/integration/nwo/token/common"
2221 "github.com/hyperledger-labs/fabric-token-sdk/integration/nwo/token/generators"
2322 "github.com/hyperledger-labs/fabric-token-sdk/integration/nwo/token/generators/dlog"
@@ -125,21 +124,14 @@ func (p *NetworkHandler) GenerateExtension(tms *topology2.TMS, node *sfcnode.Nod
125124 gomega .Expect (os .MkdirAll (p .AuditDBSQLDataSourceDir (uniqueName ), 0775 )).ToNot (gomega .HaveOccurred (), "failed to create [%s]" , p .AuditDBSQLDataSourceDir (uniqueName ))
126125 gomega .Expect (os .MkdirAll (p .IdentityDBSQLDataSourceDir (uniqueName ), 0775 )).ToNot (gomega .HaveOccurred (), "failed to create [%s]" , p .IdentityDBSQLDataSourceDir (uniqueName ))
127126
128- persistenceNames := fsc .GetPersistenceNames (node .Options , common2 .AllPrefixes ... )
129-
130127 t , err := template .New ("peer" ).Funcs (template.FuncMap {
131- "TMSID" : func () string { return tms .TmsID () },
132- "TMS" : func () * topology2.TMS { return tms },
133- "Wallets" : func () * topology2.Wallets { return p .GetEntry (tms ).Wallets [node .Name ] },
134- "TokenPersistence" : func () driver.PersistenceName { return persistenceNames [common2 .TokenKey ] },
135- "IdentityPersistence" : func () driver.PersistenceName { return persistenceNames [common2 .IdentityKey ] },
136- "TokenLockPersistence" : func () driver.PersistenceName { return persistenceNames [common2 .TokenLockKey ] },
137- "AuditTxPersistence" : func () driver.PersistenceName { return persistenceNames [common2 .AuditTransactionKey ] },
138- "OwnerTxPersistence" : func () driver.PersistenceName { return persistenceNames [common2 .OwnerTransactionKey ] },
139- "Endorsement" : func () bool { return IsFSCEndorsementEnabled (tms ) },
140- "Endorsers" : func () []string { return Endorsers (tms ) },
141- "EndorserID" : func () string { return "" },
142- "Endorser" : func () bool { return topology2 .ToOptions (node .Options ).Endorser () },
128+ "TMSID" : func () string { return tms .TmsID () },
129+ "TMS" : func () * topology2.TMS { return tms },
130+ "Wallets" : func () * topology2.Wallets { return p .GetEntry (tms ).Wallets [node .Name ] },
131+ "Endorsement" : func () bool { return IsFSCEndorsementEnabled (tms ) },
132+ "Endorsers" : func () []string { return Endorsers (tms ) },
133+ "EndorserID" : func () string { return "" },
134+ "Endorser" : func () bool { return topology2 .ToOptions (node .Options ).Endorser () },
143135 }).Parse (Extension )
144136 gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
145137
0 commit comments