uuosio / ascdk

MIT License
12 stars 9 forks source link

Allow export of main class #29

Closed jafri closed 2 years ago

jafri commented 2 years ago
@contract(escrow)
export class EscrowContract extends HelperContract {

the above code fails

jafri commented 2 years ago

@learnforpractice could you kindly try this out with by building the allow example

I keep running into this issue

ERROR TS2304: Cannot find name 'any'.

 export function contract(_: any): any {
learnforpractice commented 2 years ago

any is an undefined type in assemblyscript.

jafri commented 2 years ago

Figured out the issue, there was a printed contract erroneously