token-contract-as icon indicating copy to clipboard operation
token-contract-as copied to clipboard

yarn asp fails - compilation error when trying to create the wasm binary for file: assembly/__tests__/token.spec.ts

Open oysterpack opened this issue 5 years ago • 0 comments
trafficstars

ERROR TS2339: Property 'setSigner_account_id' does not exist on type '~lib/near-sdk-core/contract/Context'.

       Context.setSigner_account_id(alice);
               ~~~~~~~~~~~~~~~~~~~~
 in assembly/__tests__/token.spec.ts(20,15)

ERROR TS2339: Property 'setAccount_balance' does not exist on type '~lib/near-sdk-core/contract/Context'.

       Context.setAccount_balance(u128.fromString("1000000"));
               ~~~~~~~~~~~~~~~~~~
 in assembly/__tests__/token.spec.ts(21,15)

[Error] There was a compilation error when trying to create the wasm binary for file: assembly/__tests__/token.spec.ts.
[2 compile error(s)]
error Command failed with exit code 1.

oysterpack avatar Nov 17 '20 23:11 oysterpack