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

fix: fix bug in retrieving the caller in the set_config endpoint. #157

Merged
merged 3 commits into from
Mar 23, 2023

Conversation

ielashi
Copy link
Collaborator

@ielashi ielashi commented Mar 22, 2023

Problem:

When calling the set_config API, the following error is returned:

"ic0_msg_caller_size" cannot be executed in reply callback mode

The reason here is that the caller is fetched after making an async request, at which point it becomes unavailable.

Solution:

Store the caller in a variable before making the async request.

Problem:
When calling the set_config API, the following error is returned:

```
"ic0_msg_caller_size" cannot be executed in reply callback mode
```

The reason here is that the caller is fetched after making an async
request, which is not something that we allow.

Solution:
Store the caller in a variable before making the async request.
@ielashi ielashi requested a review from a team as a code owner March 22, 2023 13:19
@dragoljub-duric
Copy link
Contributor

LGTM.

@ielashi ielashi merged commit 5498706 into master Mar 23, 2023
@ielashi ielashi deleted the ielashi/fix_verify_caller branch March 23, 2023 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants