diff --git a/tests/toolchain/abigen-pass/tagged_number_test.abi b/tests/toolchain/abigen-pass/tagged_number_test.abi new file mode 100644 index 0000000000..5d36bb80a1 --- /dev/null +++ b/tests/toolchain/abigen-pass/tagged_number_test.abi @@ -0,0 +1,38 @@ +{ + "____comment": "This file was generated with eosio-abigen. DO NOT EDIT ", + "version": "eosio::abi/1.2", + "types": [], + "structs": [ + { + "name": "TaggedNumber_3472950412842106880", + "base": "", + "fields": [ + { + "name": "value", + "type": "uint64" + } + ] + }, + { + "name": "test", + "base": "", + "fields": [ + { + "name": "", + "type": "TaggedNumber_3472950412842106880" + } + ] + } + ], + "actions": [ + { + "name": "test", + "type": "test", + "ricardian_contract": "" + } + ], + "tables": [], + "ricardian_clauses": [], + "variants": [], + "action_results": [] +} \ No newline at end of file diff --git a/tests/toolchain/abigen-pass/tagged_number_test.cpp b/tests/toolchain/abigen-pass/tagged_number_test.cpp new file mode 100644 index 0000000000..6ececc057c --- /dev/null +++ b/tests/toolchain/abigen-pass/tagged_number_test.cpp @@ -0,0 +1,17 @@ +#include + +using namespace eosio; + +template +struct TaggedNumber { + uint64_t value; +}; + +class [[eosio::contract]] tagged_number_test : public contract { + public: + using contract::contract; + + [[eosio::action]] + void test(TaggedNumber<"a.tag"_n.value>) { + } +}; diff --git a/tests/toolchain/abigen-pass/tagged_number_test.json b/tests/toolchain/abigen-pass/tagged_number_test.json new file mode 100644 index 0000000000..f6e07bf6b2 --- /dev/null +++ b/tests/toolchain/abigen-pass/tagged_number_test.json @@ -0,0 +1,9 @@ +{ + "tests" : [ + { + "expected" : { + "abi-file" : "tagged_number_test.abi" + } + } + ] +}