Skip to content

Commit

Permalink
fix txtar testing
Browse files Browse the repository at this point in the history
  • Loading branch information
r3v4s committed Jun 24, 2024
1 parent 8065db7 commit 4c4fd24
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gno.land/cmd/gnoland/testdata/event_callback.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ stdout OK!
stdout 'GAS WANTED: 2000000'
stdout 'GAS USED: [0-9]+'
stdout 'HEIGHT: [0-9]+'
stdout 'EVENTS: \[{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"foo\",\"pkg_path\":\"gno.land\/r\/demo\/cbee\",\"func\":\"subFoo\",\"type\":\"foo\",\"attrs\":\[{\"key\":\"k1\",\"value\":\"v1\"},{\"key\":\"k2\",\"value\":\"v2\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/cbee\",\"func\":\"subBar\",\"type\":\"bar\",\"attrs\":\[{\"key\":\"bar\",\"value\":\"baz\"}\]}\]'
stdout 'EVENTS: \[{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"foo\",\"pkg_path\":\"gno.land\/r\/demo\/cbee\",\"func\":\"subFoo\",\"type\":\"foo\",\"attrs\":\[{\"key\":\"k1\",\"value\":\"v1\"},{\"key\":\"k2\",\"value\":\"v2\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/cbee\",\"func\":\"subBar\",\"type\":\"bar\",\"attrs\":\[{\"key\":\"bar\",\"value\":\"baz\"}\]}\]'


-- cbee.gno --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ stdout OK!
stdout 'GAS WANTED: 2000000'
stdout 'GAS USED: [0-9]+'
stdout 'HEIGHT: [0-9]+'
stdout 'EVENTS: \[{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"forLoopEmitExample\",\"pkg_path\":\"gno.land\/r\/demo\/edcl\",\"func\":\"\",\"type\":\"ForLoopEvent\",\"attrs\":\[{\"key\":\"iteration\",\"value\":\"0\"},{\"key\":\"key\",\"value\":\"value\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"forLoopEmitExample\",\"pkg_path\":\"gno.land\/r\/demo\/edcl\",\"func\":\"\",\"type\":\"ForLoopEvent\",\"attrs\":\[{\"key\":\"iteration\",\"value\":\"1\"},{\"key\":\"key\",\"value\":\"value\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"forLoopEmitExample\",\"pkg_path\":\"gno.land\/r\/demo\/edcl\",\"func\":\"\",\"type\":\"ForLoopEvent\",\"attrs\":\[{\"key\":\"iteration\",\"value\":\"2\"},{\"key\":\"key\",\"value\":\"value\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"deferEmitExample\",\"pkg_path\":\"gno.land\/r\/demo\/edcl\",\"func\":\"forLoopEmitExample\",\"type\":\"ForLoopCompletionEvent\",\"attrs\":\[{\"key\":\"count\",\"value\":\"3\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"callbackEmitExample\",\"pkg_path\":\"gno.land\/r\/demo\/edcl\",\"func\":\"\",\"type\":\"CallbackEvent\",\"attrs\":\[{\"key\":\"key1\",\"value\":\"value1\"},{\"key\":\"key2\",\"value\":\"value2\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"deferEmitExample\",\"pkg_path\":\"gno.land\/r\/demo\/edcl\",\"func\":\"callbackEmitExample\",\"type\":\"CallbackCompletionEvent\",\"attrs\":\[{\"key\":\"key\",\"value\":\"value\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"Main\",\"pkg_path\":\"gno.land\/r\/demo\/edcl\",\"func\":\"deferEmitExample\",\"type\":\"DeferEvent\",\"attrs\":\[{\"key\":\"key1\",\"value\":\"value1\"},{\"key\":\"key2\",\"value\":\"value2\"}\]}\]'
stdout 'EVENTS: \[{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"forLoopEmitExample\",\"pkg_path\":\"gno.land\/r\/demo\/edcl\",\"func\":\"\",\"type\":\"ForLoopEvent\",\"attrs\":\[{\"key\":\"iteration\",\"value\":\"0\"},{\"key\":\"key\",\"value\":\"value\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"forLoopEmitExample\",\"pkg_path\":\"gno.land\/r\/demo\/edcl\",\"func\":\"\",\"type\":\"ForLoopEvent\",\"attrs\":\[{\"key\":\"iteration\",\"value\":\"1\"},{\"key\":\"key\",\"value\":\"value\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"forLoopEmitExample\",\"pkg_path\":\"gno.land\/r\/demo\/edcl\",\"func\":\"\",\"type\":\"ForLoopEvent\",\"attrs\":\[{\"key\":\"iteration\",\"value\":\"2\"},{\"key\":\"key\",\"value\":\"value\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"deferEmitExample\",\"pkg_path\":\"gno.land\/r\/demo\/edcl\",\"func\":\"forLoopEmitExample\",\"type\":\"ForLoopCompletionEvent\",\"attrs\":\[{\"key\":\"count\",\"value\":\"3\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"callbackEmitExample\",\"pkg_path\":\"gno.land\/r\/demo\/edcl\",\"func\":\"\",\"type\":\"CallbackEvent\",\"attrs\":\[{\"key\":\"key1\",\"value\":\"value1\"},{\"key\":\"key2\",\"value\":\"value2\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"deferEmitExample\",\"pkg_path\":\"gno.land\/r\/demo\/edcl\",\"func\":\"callbackEmitExample\",\"type\":\"CallbackCompletionEvent\",\"attrs\":\[{\"key\":\"key\",\"value\":\"value\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"Main\",\"pkg_path\":\"gno.land\/r\/demo\/edcl\",\"func\":\"deferEmitExample\",\"type\":\"DeferEvent\",\"attrs\":\[{\"key\":\"key1\",\"value\":\"value1\"},{\"key\":\"key2\",\"value\":\"value2\"}\]}\]'

-- edcl.gno --

Expand Down
4 changes: 2 additions & 2 deletions gno.land/cmd/gnoland/testdata/event_for_statement.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ stdout OK!
stdout 'GAS WANTED: 2000000'
stdout 'GAS USED: [0-9]+'
stdout 'HEIGHT: [0-9]+'
stdout 'EVENTS: \[{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]}\]'
stdout 'EVENTS: \[{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"Foo\",\"type\":\"testing\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]}\]'

gnokey maketx call -pkgpath gno.land/r/demo/foree -func Bar -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1
stdout OK!
stdout 'GAS WANTED: 2000000'
stdout 'GAS USED: [0-9]+'
stdout 'HEIGHT: [0-9]+'
stdout 'EVENTS: \[{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"Foo\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"subFoo\",\"type\":\"Foo\",\"attrs\":\[{\"key\":\"k1\",\"value\":\"v1\"},{\"key\":\"k2\",\"value\":\"v2\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"subBar\",\"type\":\"Bar\",\"attrs\":\[{\"key\":\"bar\",\"value\":\"baz\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"Foo\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"subFoo\",\"type\":\"Foo\",\"attrs\":\[{\"key\":\"k1\",\"value\":\"v1\"},{\"key\":\"k2\",\"value\":\"v2\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"subBar\",\"type\":\"Bar\",\"attrs\":\[{\"key\":\"bar\",\"value\":\"baz\"}\]}\]'
stdout 'EVENTS: \[{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"Foo\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"subFoo\",\"type\":\"Foo\",\"attrs\":\[{\"key\":\"k1\",\"value\":\"v1\"},{\"key\":\"k2\",\"value\":\"v2\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"subBar\",\"type\":\"Bar\",\"attrs\":\[{\"key\":\"bar\",\"value\":\"baz\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"Foo\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"subFoo\",\"type\":\"Foo\",\"attrs\":\[{\"key\":\"k1\",\"value\":\"v1\"},{\"key\":\"k2\",\"value\":\"v2\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/foree\",\"func\":\"subBar\",\"type\":\"Bar\",\"attrs\":\[{\"key\":\"bar\",\"value\":\"baz\"}\]}\]'


-- foree.gno --
Expand Down
4 changes: 2 additions & 2 deletions gno.land/cmd/gnoland/testdata/event_normal.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ stdout OK!
stdout 'GAS WANTED: 2000000'
stdout 'GAS USED: \d+'
stdout 'HEIGHT: \d+'
stdout 'EVENTS: \[{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"Foo\",\"pkg_path\":\"gno.land\/r\/demo\/ee\",\"func\":\"SubFoo\",\"type\":\"foo\",\"attrs\":\[{\"key\":\"key1\",\"value\":\"value1\"},{\"key\":\"key2\",\"value\":\"value2\"},{\"key\":\"key3\",\"value\":\"value3\"}\]},{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"Foo\",\"pkg_path\":\"gno.land\/r\/demo\/ee\",\"func\":\"SubBar\",\"type\":\"bar\",\"attrs\":\[{\"key\":\"bar\",\"value\":\"baz\"}\]}\]'
stdout 'EVENTS: \[{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"Foo\",\"pkg_path\":\"gno.land\/r\/demo\/ee\",\"func\":\"SubFoo\",\"type\":\"foo\",\"attrs\":\[{\"key\":\"key1\",\"value\":\"value1\"},{\"key\":\"key2\",\"value\":\"value2\"},{\"key\":\"key3\",\"value\":\"value3\"}\]},{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"Foo\",\"pkg_path\":\"gno.land\/r\/demo\/ee\",\"func\":\"SubBar\",\"type\":\"bar\",\"attrs\":\[{\"key\":\"bar\",\"value\":\"baz\"}\]}\]'

gnokey maketx call -pkgpath gno.land/r/demo/ee -func Bar -gas-fee 1000000ugnot -gas-wanted 2000000 -broadcast -chainid=tendermint_test test1
stdout OK!
stdout 'GAS WANTED: 2000000'
stdout 'GAS USED: \d+'
stdout 'HEIGHT: \d+'
stdout 'EVENTS: \[{\"orig_caller\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"prev\":{\"prev_pkg_path\":\"\",\"prev_pkg_addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land\/r\/demo\/ee\",\"func\":\"Bar\",\"type\":\"bar\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]}\]'
stdout 'EVENTS: \[{\"prev\":{\"addr\":\"g1jg8mtutu9khhfwc4nxmuhcpftf0pajdhfvsqf5\",\"pkg_path\":\"\"},\"prev_func\":\"\",\"pkg_path\":\"gno.land/r/demo/ee\",\"func\":\"Bar\",\"type\":\"bar\",\"attrs\":\[{\"key\":\"foo\",\"value\":\"bar\"}\]}\]'

-- ee.gno --
package ee
Expand Down

0 comments on commit 4c4fd24

Please sign in to comment.