Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: time-simple.txtar #2111

Merged
merged 1 commit into from
May 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions gno.land/cmd/gnoland/testdata/time-simple.txtar
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Originally, the addpkg failed due to changes in PR https://github.com/gnolang/gno/pull/1702 .
# This bug was fixed with https://github.com/gnolang/gno/pull/2105 .

gnoland start

gnokey maketx addpkg -pkgdir $WORK -pkgpath gno.land/r/time_simple -gas-fee 1ugnot -gas-wanted 10000000 -broadcast -chainid=tendermint_test test1
stdout OK!

-- time_simple.gno --
package time_simple

import (
"time"
)

func GetUnixTime() int64 {
return time.Now().Unix()
}
Loading