Closed jafri closed 2 years ago
What's the error?
You can try with ascdk-dev
branch, I added code to examples
lots of errors
All the variant is/get throw error it seems with export
I haven't seen any errors. Here is the test result:
test.py::test_hello PASSED
test.py::test_action PASSED
test.py::test_counter PASSED
test.py::test_token PASSED
test.py::test_codegeneration PASSED
test.py::test_notify PASSED
test.py::test_singleton PASSED
test.py::test_allow PASSED
test.py::test_escrow PASSED
test.py::test_balance PASSED
Ok, let me update the source code and have another try.
Why do you want to export KvContract
? This is the main class and does not expect to be exported.
Good for contract composability, like contract Abc
importing KvContract
to instantiate it, and then call it's methods
Also another dev messaged me saying they were running into an issue and I narrowed it down to the export
, so its unexpected behavior for export
to throw issue in valid code
Yeah, sounds like the asc compiler does not happy with the exported class. Give me some the to find out the reason.
It kind of looks like our transformer misses the exported class
Fixed by 2fba770d70ff7e2c3ae84ba52aa2438c86b74085
@learnforpractice could you kindly have a look at this:
https://github.com/uuosio/ascdk/blob/6621212b34d7b2c76208d6e1b77dda0902e1c97c/examples/atomicassets/atomicassets.contract.ts#L8
Building fails if
export
is addedWorks fine without export