Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Angelo De Caro <[email protected]>
  • Loading branch information
adecaro committed Sep 8, 2023
1 parent 1879e08 commit e7b2b33
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions integration/token/interop/topology.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ func AssetTransferTopology(tokenSDKDriver string) []api.Topology {
fabric.WithAnonymousIdentity(),
fabric.WithDefaultNetwork("alpha"),
token.WithIssuerIdentity("issuer.id1"),
token.WithOwnerIdentity(tokenSDKDriver, "issuer.id1.owner"),
token.WithOwnerIdentity("issuer.id1.owner"),
)
issuerAlpha.RegisterViewFactory("issue", &views2.IssueCashViewFactory{})
issuerAlpha.RegisterViewFactory("balance", &views2.BalanceViewFactory{})
Expand All @@ -551,7 +551,7 @@ func AssetTransferTopology(tokenSDKDriver string) []api.Topology {
fabric.WithAnonymousIdentity(),
fabric.WithDefaultNetwork("beta"),
token.WithIssuerIdentity("issuer.id2"),
token.WithOwnerIdentity(tokenSDKDriver, "issuer.id2.owner"),
token.WithOwnerIdentity("issuer.id2.owner"),
)
issuerBeta.RegisterViewFactory("issue", &views2.IssueCashViewFactory{})
issuerBeta.RegisterViewFactory("balance", &views2.BalanceViewFactory{})
Expand All @@ -577,7 +577,7 @@ func AssetTransferTopology(tokenSDKDriver string) []api.Topology {
fabric.WithNetworkOrganization("alpha", "Org2"),
fabric.WithAnonymousIdentity(),
fabric.WithDefaultNetwork("alpha"),
token.WithOwnerIdentity(tokenSDKDriver, "alice.id1"),
token.WithOwnerIdentity("alice.id1"),
)
alice.RegisterResponder(&views2.AcceptCashView{}, &views2.IssueCashView{})
alice.RegisterViewFactory("balance", &views2.BalanceViewFactory{})
Expand All @@ -595,7 +595,7 @@ func AssetTransferTopology(tokenSDKDriver string) []api.Topology {
fabric.WithNetworkOrganization("beta", "Org4"),
fabric.WithAnonymousIdentity(),
fabric.WithDefaultNetwork("beta"),
token.WithOwnerIdentity(tokenSDKDriver, "bob.id1"),
token.WithOwnerIdentity("bob.id1"),
)
bob.RegisterResponder(&views2.AcceptCashView{}, &views2.IssueCashView{})
bob.RegisterViewFactory("balance", &views2.BalanceViewFactory{})
Expand Down
2 changes: 1 addition & 1 deletion token/core/fabtoken/deserializer.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (e *EnrollmentService) GetRevocationHandler(auditInfo []byte) (string, erro
}

// Try to unmarshal it as ScriptInfo
si := &htlc.ScriptInfo{}
si := &interop.ScriptInfo{}
err := json.Unmarshal(auditInfo, si)
if err == nil && (len(si.Sender) != 0 || len(si.Recipient) != 0) {
if len(si.Recipient) != 0 {
Expand Down

0 comments on commit e7b2b33

Please sign in to comment.