From cb4fc6885bbdcaf08134bd18350849e9a8c44876 Mon Sep 17 00:00:00 2001 From: matijamarjanovic Date: Sat, 18 Jan 2025 01:04:07 +0100 Subject: [PATCH] try fixed getter --- examples/gno.land/r/matijamarjanovic/gnocket/wallet.gno | 4 ++-- .../gno.land/r/matijamarjanovic/gnocket/wallet_registry.gno | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/gno.land/r/matijamarjanovic/gnocket/wallet.gno b/examples/gno.land/r/matijamarjanovic/gnocket/wallet.gno index 8f9b2141fc1..cdee208edc8 100644 --- a/examples/gno.land/r/matijamarjanovic/gnocket/wallet.gno +++ b/examples/gno.land/r/matijamarjanovic/gnocket/wallet.gno @@ -24,12 +24,12 @@ func assertOwnership() { func GetBalancesRaw() string { assertOwnership() - return tokenhub.GetMyBalances() + return tokenhub.GetMyBalancesOrigCaller() } func GetAllBalancesRaw() string { assertOwnership() - return tokenhub.GetMyBalancesAll() + return tokenhub.GetMyBalancesAllOrigCaller() } diff --git a/examples/gno.land/r/matijamarjanovic/gnocket/wallet_registry.gno b/examples/gno.land/r/matijamarjanovic/gnocket/wallet_registry.gno index 335daf68856..9c8ad87af1f 100644 --- a/examples/gno.land/r/matijamarjanovic/gnocket/wallet_registry.gno +++ b/examples/gno.land/r/matijamarjanovic/gnocket/wallet_registry.gno @@ -30,8 +30,7 @@ func NewWallet() *Wallet { wallets.Set(string(caller), wallet) braw := GetAllBalancesRaw() - println(braw) - + return wallet }