From 4c4fd24b22bd7860aacaddf8c22d0f4f2f52349d Mon Sep 17 00:00:00 2001 From: n3wbie Date: Mon, 24 Jun 2024 19:18:46 +0900 Subject: [PATCH] fix txtar testing --- gno.land/cmd/gnoland/testdata/event_callback.txtar | 2 +- gno.land/cmd/gnoland/testdata/event_defer_callback_loop.txtar | 2 +- gno.land/cmd/gnoland/testdata/event_for_statement.txtar | 4 ++-- gno.land/cmd/gnoland/testdata/event_normal.txtar | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gno.land/cmd/gnoland/testdata/event_callback.txtar b/gno.land/cmd/gnoland/testdata/event_callback.txtar index f643979c4fa..c848326174f 100644 --- a/gno.land/cmd/gnoland/testdata/event_callback.txtar +++ b/gno.land/cmd/gnoland/testdata/event_callback.txtar @@ -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 -- diff --git a/gno.land/cmd/gnoland/testdata/event_defer_callback_loop.txtar b/gno.land/cmd/gnoland/testdata/event_defer_callback_loop.txtar index 3ee243fe060..047e52f1482 100644 --- a/gno.land/cmd/gnoland/testdata/event_defer_callback_loop.txtar +++ b/gno.land/cmd/gnoland/testdata/event_defer_callback_loop.txtar @@ -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 -- diff --git a/gno.land/cmd/gnoland/testdata/event_for_statement.txtar b/gno.land/cmd/gnoland/testdata/event_for_statement.txtar index e35d430a84c..5937eed86bc 100644 --- a/gno.land/cmd/gnoland/testdata/event_for_statement.txtar +++ b/gno.land/cmd/gnoland/testdata/event_for_statement.txtar @@ -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 -- diff --git a/gno.land/cmd/gnoland/testdata/event_normal.txtar b/gno.land/cmd/gnoland/testdata/event_normal.txtar index d0009a959ed..9dbbce821eb 100644 --- a/gno.land/cmd/gnoland/testdata/event_normal.txtar +++ b/gno.land/cmd/gnoland/testdata/event_normal.txtar @@ -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