Skip to content

Make your own test case #13

@fulldecent

Description

@fulldecent

Use an input box to have the user paste in solidity code. Provide a few example snippets.

Sample web page:


Custom test case (advanced)

Input your own Solidity code to create a custom test case which can be run against any smart contract. Read about how we run Solidity code against blockchain networks without committing transactions to the network here (LINK TO WILL+TADEJ PAPER).

[ BUTTON: Load example erc165 test case ]
[ BUTTON: Load hello world test case ]
[ BUTTON: Load erc20 symbol name test case ]

[ LARGE TEXT BOX WITH LAST TEST CASE PREFILLED ]

[ RUN TEST CASE ]


Note: the test cases are going to have an `import "http:... /oxcertvalidator/testcase.sol" at the top.

After clicking submit: use soljs to compile and run the code like f-- magic. Then send the byte code to REST backend to run the test case.


Test case results:

Test case ran with a gas limit of XXXX. Total gas consumed XXX. Test did NOT revert.

If your test case is awesome, open an issue HERE and we can add it into the validator!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions