-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from AntelopeIO/abigen-ricardian-fix
Bugfix for ricardian contracts being generated
- Loading branch information
Showing
7 changed files
with
68 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"____comment": "This file was generated with eosio-abigen. DO NOT EDIT ", | ||
"version": "eosio::abi/1.2", | ||
"types": [], | ||
"structs": [ | ||
{ | ||
"name": "test", | ||
"base": "", | ||
"fields": [] | ||
} | ||
], | ||
"actions": [ | ||
{ | ||
"name": "test", | ||
"type": "test", | ||
"ricardian_contract": "---\nspec-version: 0.0.2\ntitle: test\nsummary: This method does nothing on purpose.\nicon:\n---\n\nThis test checks ricardian contract was generated succesfully." | ||
} | ||
], | ||
"tables": [], | ||
"ricardian_clauses": [ | ||
{ | ||
"id": "Disclaimer", | ||
"body": "This test checks ricardian contract was generated succesfully." | ||
} | ||
], | ||
"variants": [], | ||
"action_results": [] | ||
} |
3 changes: 3 additions & 0 deletions
3
tests/toolchain/abigen-pass/ricardian_contract_test.clauses.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<h1 class="clause">Disclaimer</h1> | ||
|
||
This test checks ricardian contract was generated succesfully. |
9 changes: 9 additions & 0 deletions
9
tests/toolchain/abigen-pass/ricardian_contract_test.contracts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<h1 class="contract">test</h1> | ||
--- | ||
spec-version: 0.0.2 | ||
title: test | ||
summary: This method does nothing on purpose. | ||
icon: | ||
--- | ||
|
||
This test checks ricardian contract was generated succesfully. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <eosio/eosio.hpp> | ||
|
||
using namespace eosio; | ||
|
||
class [[eosio::contract]] ricardian_contract_test : public contract { | ||
public: | ||
using contract::contract; | ||
|
||
[[eosio::action]] | ||
void test() { | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"tests" : [ | ||
{ | ||
"compile_flags" : ["-R={cwd}"], | ||
"expected" : { | ||
"abi-file" : "ricardian_contract_test.abi" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters