From 943628e7beab8ca2931e2ae0f8dae0e60566e017 Mon Sep 17 00:00:00 2001 From: "hieu.ha" Date: Tue, 21 Jan 2025 13:04:17 +0700 Subject: [PATCH] fix: fix tests --- examples/gno.land/r/ursulovic/home/home_test.gno | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/gno.land/r/ursulovic/home/home_test.gno b/examples/gno.land/r/ursulovic/home/home_test.gno index ff3f763d62a..eea71c030e6 100644 --- a/examples/gno.land/r/ursulovic/home/home_test.gno +++ b/examples/gno.land/r/ursulovic/home/home_test.gno @@ -9,7 +9,7 @@ import ( func TestUpdateGithubUrl(t *testing.T) { caller := std.Address("g1d24j8fwnc0w5q427fauyey4gdd30qgu69k6n0x") - std.TestSetOrigCaller(caller) + std.TestSetOriginCaller(caller) newUrl := "https://github.com/example" @@ -22,7 +22,7 @@ func TestUpdateGithubUrl(t *testing.T) { func TestUpdateLinkedinUrl(t *testing.T) { caller := std.Address("g1d24j8fwnc0w5q427fauyey4gdd30qgu69k6n0x") - std.TestSetOrigCaller(caller) + std.TestSetOriginCaller(caller) newUrl := "https://www.linkedin.com/in/example" @@ -35,7 +35,7 @@ func TestUpdateLinkedinUrl(t *testing.T) { func TestUpdateAboutMe(t *testing.T) { caller := std.Address("g1d24j8fwnc0w5q427fauyey4gdd30qgu69k6n0x") - std.TestSetOrigCaller(caller) + std.TestSetOriginCaller(caller) newAboutMe := "This is new description!" @@ -48,12 +48,12 @@ func TestUpdateAboutMe(t *testing.T) { func TestUpdateSelectedImage(t *testing.T) { var user = testutils.TestAddress("user") - std.TestSetOrigCaller(user) + std.TestSetOriginCaller(user) validImageUrl := "https://i.ibb.co/hLtmnX0/beautiful-rain-forest-ang-ka-nature-trail-doi-inthanon-national-park-thailand-36703721.webp" coinsSent := std.NewCoins(std.NewCoin("ugnot", 5000000)) // Update to match the price expected by your function - std.TestSetOrigSend(coinsSent, std.NewCoins()) + std.TestSetOriginSend(coinsSent, std.NewCoins()) UpdateSelectedImage(validImageUrl) @@ -72,7 +72,7 @@ func TestUpdateSelectedImage(t *testing.T) { UpdateSelectedImage(invalidImageUrl) invalidCoins := std.NewCoins(std.NewCoin("ugnot", 1000000)) - std.TestSetOrigSend(invalidCoins, std.NewCoins()) + std.TestSetOriginSend(invalidCoins, std.NewCoins()) defer func() { if r := recover(); r == nil { @@ -85,7 +85,7 @@ func TestUpdateSelectedImage(t *testing.T) { func TestUpdateImagePrice(t *testing.T) { caller := std.Address("g1d24j8fwnc0w5q427fauyey4gdd30qgu69k6n0x") - std.TestSetOrigCaller(caller) + std.TestSetOriginCaller(caller) var newImageUpdatePrice int64 = 3000000