Skip to content

Commit

Permalink
fix(gno.land): update txtar, not modified in gnolang#3580 (gnolang#3590)
Browse files Browse the repository at this point in the history
## Description

Fixes txtar that needed to be in gnolang#3580 

Should've been caught by CI, wasn't

---------

Co-authored-by: Morgan Bazalgette <morgan@morganbaz.com>
  • Loading branch information
2 people authored and stefann-01 committed Jan 24, 2025
1 parent 6aa738b commit 8caa6ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/gnoland.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
# since there are integration suites that cover the gnovm / tm2
- gnovm/**
- tm2/**
# Changes to examples/ can create failures in gno.land, eg. txtars,
# see: https://github.com/gnolang/gno/pull/3590
- examples/**
workflow_dispatch:

jobs:
Expand Down
5 changes: 2 additions & 3 deletions gno.land/pkg/integration/testdata/issue_1786.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ import (
"std"

"gno.land/r/demo/wugnot"
pusers "gno.land/p/demo/users"
)

func ProxyWrap() {
Expand All @@ -64,7 +63,7 @@ func ProxyWrap() {
wugnot.Deposit() // `proxywugnot` has ugnot

// SEND WUGNOT: PROXY_WUGNOT -> USER
wugnot.Transfer(pusers.AddressOrName(std.GetOrigCaller()), ugnotSent)
wugnot.Transfer(std.GetOrigCaller(), ugnotSent)
}

func ProxyUnwrap(wugnotAmount uint64) {
Expand All @@ -73,7 +72,7 @@ func ProxyUnwrap(wugnotAmount uint64) {
}

// SEND WUGNOT: USER -> PROXY_WUGNOT
wugnot.TransferFrom(pusers.AddressOrName(std.GetOrigCaller()), pusers.AddressOrName(std.CurrentRealm().Addr()), wugnotAmount)
wugnot.TransferFrom(std.GetOrigCaller(), std.CurrentRealm().Addr(), wugnotAmount)

// UNWRAP IT
wugnot.Withdraw(wugnotAmount)
Expand Down

0 comments on commit 8caa6ca

Please sign in to comment.