diff --git a/tools/walletextension/accountmanager/account_manager.go b/tools/walletextension/accountmanager/account_manager.go index 5f960f8b38..a28e35de38 100644 --- a/tools/walletextension/accountmanager/account_manager.go +++ b/tools/walletextension/accountmanager/account_manager.go @@ -4,9 +4,10 @@ import ( "encoding/json" "errors" "fmt" + "strings" + "github.com/ethereum/go-ethereum/eth/filters" "github.com/obscuronet/go-obscuro/tools/walletextension/subscriptions" - "strings" "github.com/obscuronet/go-obscuro/go/common/gethencoding" diff --git a/tools/walletextension/subscriptions/subscriptions.go b/tools/walletextension/subscriptions/subscriptions.go index 1973405573..afc8cb51e2 100644 --- a/tools/walletextension/subscriptions/subscriptions.go +++ b/tools/walletextension/subscriptions/subscriptions.go @@ -54,7 +54,6 @@ func (sm *SubscriptionManager) HandleNewSubscriptions(clients []rpc.Client, req // TODO (@ziga): Currently we use the same value for node and user subscriptionID - this will change after // subscribing with multiple accounts sm.UpdateSubscriptionMapping(currentNodeSubscriptionID, currentNodeSubscriptionID) - } // We periodically check if the websocket is closed, and terminate the subscription. @@ -96,7 +95,6 @@ func readFromChannelAndWriteToUserConn(channel chan common.IDAndLog, userConn us logger.Error("could not write the JSON log to the websocket on subscription %", log.SubIDKey, data.SubID, log.ErrKey, err) continue } - } } }