near / near-workspaces-js

Write tests once, run them both on NEAR TestNet and a controlled NEAR Sandbox local environment
https://near.github.io/near-workspaces-js/
GNU General Public License v3.0
42 stars 22 forks source link

Error while importing promise_batch_action_function_call_weight #170

Open ymc182 opened 2 years ago

ymc182 commented 2 years ago

I am running into Error while testing using workspace-ts, the contract works fine on testnet The contract also import standard token contract and both using sdk 4.0.0.

however the test past if I removed the marco

near_contract_standards::impl_fungible_token_core!(Contract, token, on_tokens_burned);
 near_contract_standards::impl_fungible_token_storage!(Contract, token, on_account_closed);
austinabell commented 2 years ago

This is an issue with sandbox version not including the most recent protocol change.

To fix this, the default version of sandbox needs to be updated to anything >= 1.26.0 of nearcore.