Flow-js-testing ended with error Error Code: 1054
thrown: "execution error code 1101: [Error Code: 1101] cadence runtime error Execution failed:
error: [Error Code: 1054] location (null) is not a valid location: expecting an AddressLocation, but other location types are passed
--> null
This happens when I use an import statement. Code without import statement works fine.
If i print the code from getContractCode() / getTransactionCode(), it contains the import statement with emulator address
import NonFungibleToken from 0xf8d6e0586b0a20c7
But deployContract()/sendTransaction() returns error 1054. deployContractByName() also returns same error
My code works fine with commands “flow project deploy”, it deploys contracts in an emulator account. “flow transactions send mytrans,cdc”, executes my transactions fine. My contract and transactions are working fine in emulator and testnet. In flow-js-testing I am facing the issue
thrown: "execution error code 1101: [Error Code: 1101] cadence runtime error Execution failed:
error: [Error Code: 1054] location (null) is not a valid location: expecting an AddressLocation, but other location types are passed
--> null
Cli version : v0.26.0
Flow-js-testing : ^0.1.12
Please help. Thanks in advance