diff --git a/tools/walletextension/main/main.go b/tools/walletextension/main/main.go index 217a6c08f..173651854 100644 --- a/tools/walletextension/main/main.go +++ b/tools/walletextension/main/main.go @@ -73,6 +73,7 @@ func main() { walletExtensionAddr := fmt.Sprintf("%s:%d", common.Localhost, config.WalletExtensionPortHTTP) fmt.Printf("💡 Wallet extension started \n") // Some tests rely on seeing this message. Removed in next PR. fmt.Printf("💡 Obscuro Gateway started - visit http://%s/\n", walletExtensionAddr) + fmt.Println("TESTING: This is a test version of the TEN Gateway") select {} } diff --git a/tools/walletextension/storage/database/cosmosdb/cosmosdb.go b/tools/walletextension/storage/database/cosmosdb/cosmosdb.go index f87d9662c..8241649e8 100644 --- a/tools/walletextension/storage/database/cosmosdb/cosmosdb.go +++ b/tools/walletextension/storage/database/cosmosdb/cosmosdb.go @@ -191,7 +191,15 @@ func (c *CosmosDB) GetUser(userID []byte) (*common.GWUser, error) { if err != nil { return nil, err } - return user.user.ToGWUser() + fmt.Println("TESTING: got user from cosmos db for user", userID) + u, err := user.user.ToGWUser() + if err != nil { + return nil, err + } + + fmt.Println("TESTING: user", userID, "has", len(u.Accounts), "accounts") + fmt.Println("TESTING: user accounts:", u.GetAllAddresses()) + return u, err } func (c *CosmosDB) getUserDB(userID []byte) (userWithETag, error) {