Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arguments from the console did not pass to air #405

Merged
merged 1 commit into from Jan 20, 2022

Conversation

DieMyst
Copy link
Member

@DieMyst DieMyst commented Jan 20, 2022

Variables were not registered in air

aqua run -i aqua-scripts -a /dns4/kras-00.fluence.dev/tcp/19990/wss/p2p/12D3KooWSD5PToNiLQwKDXsu8JSysCwUt8BVUJEqCHcDe7P5h45e -f 'add_one(arg1, arg2, arg3)' --data '{"arg1": 5, "arg2": "12D3KooWFtf3rfCDAfWwt6oLZYZbDfn9Vn7bv7g6QjjQxUUEFVBt", "arg3": "7b2ab89f-0897-4537-b726-8120b405074d"}'
Your peerId: 12D3KooWMHpKgiGaduHWhW3pJdCEoQUjR8wrQsZm1cKxhkrgxB8L
Interpreter failed:  {
    "retCode": 1,
    "errorMessage": "air can't be parsed:\nerror: \n   ┌─ script.air:11:7\n   │\n11 │       (call arg2 (arg3 \"add_one\") [arg1] res)\n   │       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n   │       │\n   │       variable 'arg2' wasn't defined\n   │       variable 'arg3' wasn't defined\n   │       variable 'arg1' wasn't defined\n\n",
    "data": "",
    "nextPeerPks": [],
    "callRequests": []
}

@DieMyst DieMyst self-assigned this Jan 20, 2022
@DieMyst DieMyst merged commit 255c1f6 into main Jan 20, 2022
@DieMyst DieMyst deleted the fix-argument-passing-aqua-run branch January 20, 2022 04:08
@DieMyst DieMyst added the bug Something isn't working label Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant