Running query against archive node does not replace addresses correctly
Open
@devbugging is already working on this.
Since Apr 18, 2023.
Improvement
- Dominant language
- Go
- Stars
- 209
- Forks
- 87
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 3
Description
Instructions
I am trying to run a script against an archive node but it fails because the address is not replaced in properly. It is using the emulator version of the dependency not the mainnet one
Problem
❌ Command Error: failed to submit executable script: client: rpc error: code = Unknown desc = could not execute script: script execution encountered error: [Error Code: 1101] error caused by: [Error Code: 1101] cadence runtime error: Execution failed:
error: get program failed: cannot check account freeze status: [Error Code: 1201] account not found for address 179b6b1cb6755e31
--> 179b6b1cb6755e31.FIND
error: cannot find variable in this scope: `FIND`
--> 800713a70e2e84b89a4ef71470528f1a77dea2b7301f806e0bc4863c903d27e3:5:8
|
5 | return FIND.resolve(name)
| ^^^^ not found in this scope```
### Steps to Reproduce
run a script that has a import without address against a host without specifying the network flag.
You cannot specify both network flag and host flag.
### Acceptance Criteria
It is possible to specify network flag to resolve but host will override host.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.