You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use main.ava.js to test FT whit ava, the beforeEach hook always throws failures. Below is the relevant logging, hope someone can help me.
` ✖ beforeEach hook for Can close empty balance account Rejected promise returned by test
✖ beforeEach hook for Simple transfer Rejected promise returned by test
✖ beforeEach hook for Total supply Rejected promise returned by test
✖ beforeEach hook for Can force close non-empty balance account Rejected promise returned by test
✖ 4 tests remaining in tests/main.ava.ts
─
beforeEach hook for Can close empty balance account
When I use main.ava.js to test FT whit ava, the beforeEach hook always throws failures. Below is the relevant logging, hope someone can help me.
` ✖ beforeEach hook for Can close empty balance account Rejected promise returned by test
✖ beforeEach hook for Simple transfer Rejected promise returned by test
✖ beforeEach hook for Total supply Rejected promise returned by test
✖ beforeEach hook for Can force close non-empty balance account Rejected promise returned by test
✖ 4 tests remaining in tests/main.ava.ts
─
beforeEach hook for Can close empty balance account
Rejected promise returned by test. Reason:
Error (TransactionError) {
message: '{"result":{"receipts_outcome":[{"block_hash":"sqRkmRMXyr9ZntukqEwSbdoqkF83vvctKnHHCcET6NX","id":"EXi5BYRuLAtvgFutnHBFnp3sdWcX5qhSb1UmgyA8WJnz","outcome":{"executor_id":"fungible-token.test.near","gas_burnt":2478387861555,"logs":[],"metadata":{"gas_profile":[{"cost":"CONTRACT_COMPILE_BASE","cost_category":"WASM_HOST_COST","gas_used":"35445963"},{"cost":"CONTRACT_COMPILE_BYTES","cost_category":"WASM_HOST_COST","gas_used":"50290551750"}],"version":1},"receipt_ids":["B7aDDWkf8zF3gAiniFsTFtqArCz9G9XsUfDPvcX7zVCJ"],"status":{"Failure":{"ActionError":{"index":0,"kind":{"FunctionCallError":{"ExecutionError":"Link Error: Error while importing \"env\".\"promise_batch_action_function_call_weight\": unknown import. Expected Function(FunctionType { params: [I64, I64, I64, I64, I64, I64, I64, I64], results: [] })"}}}}},"tokens_burnt":"2478387861555000000000"},"proof":[{"direction":"Left","hash":"ESvfpBxCQGqxmUvfBKwHbAcdKpS349WBky8Hv7fP8i6z"}]},{"block_hash":"BqLFCroAX53xJguskiH9tbPLfqbbzh1Hxsx6MrgvTEzL","id":"B7aDDWkf8zF3gAiniFsTFtqArCz9G9XsUfDPvcX7zVCJ","outcome":{"executor_id":"fungible-token.test.near","gas_burnt":223182562500,"logs":[],"metadata":{"gas_profile":[],"version":1},"receipt_ids":[],"status":{"SuccessValue":""},"tokens_burnt":"0"},"proof":[]}],"status":{"Failure":{"ActionError":{"index":0,"kind":{"FunctionCallError":{"ExecutionError":"Link Error: Error while importing \"env\".\"promise_batch_action_function_call_weight\": unknown import. Expected Function(FunctionType { params: [I64, I64, I64, I64, I64, I64, I64, I64], results: [] })"}}}}},"transaction":{"actions":[{"FunctionCall":{"args":"eyJvd25lcl9pZCI6InRlc3QubmVhciIsInRvdGFsX3N1cHBseSI6IjEwMDAwIn0=","deposit":"0","gas":30000000000000,"method_name":"new_default_meta"}}],"hash":"4oWzC5qB4dsTznq1NFAaHHwRD6fPhVdPoHyKaKBFvVta","nonce":3000001,"public_key":"ed25519:448iYi2H8MehSfcG652X6quoxwdrHAcgtheyutKtVMng","receiver_id":"fungible-token.test.near","signature":"ed25519:iTv4KNxXRSfUajLXP2TNGPGuBSKmSP3bkYeWiET3Zm2cHKLzQC3bVhKREYRnmTs96UADgk6NnFNibw4w1ofiCzF","signer_id":"fungible-token.test.near"},"transaction_outcome":{"block_hash":"sqRkmRMXyr9ZntukqEwSbdoqkF83vvctKnHHCcET6NX","id":"4oWzC5qB4dsTznq1NFAaHHwRD6fPhVdPoHyKaKBFvVta","outcome":{"executor_id":"fungible-token.test.near","gas_burnt":2428061863842,"logs":[],"metadata":{"gas_profile":null,"version":1},"receipt_ids":["EXi5BYRuLAtvgFutnHBFnp3sdWcX5qhSb1UmgyA8WJnz"],"status":{"SuccessReceiptId":"EXi5BYRuLAtvgFutnHBFnp3sdWcX5qhSb1UmgyA8WJnz"},"tokens_burnt":"2428061863842000000000"},"proof":[{"direction":"Right","hash":"76FRpWKRPCoUUxzDV7kBjqtLTNK5iyHoaCMQmy8ZafQ3"}]}},"startMs":1658990180091,"endMs":1658990182129,"config":{"network":"sandbox","rootAccountId":"test.near","rpcAddr":"http://localhost:6360","initialBalance":"100000000000000000000000000","homeDir":"/tmp/sandbox/9dfdc3b0-cc36-48e9-9b1d-d7857eb318bd","port":6360,"rm":false,"refDir":null}}',
}
`
My package.json in workspace:
{ "devDependencies": { "@types/bn.js": "^5.1.0", "ava": "^4.2.0", "ts-node": "^10.8.0", "bn": "^1.0.5", "bn.js": "^5.2.1", "near-workspaces": "^2.0.0" }, "dependencies": { } }
The text was updated successfully, but these errors were encountered: