-
Notifications
You must be signed in to change notification settings - Fork 1
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
Advanced test environment #1
base: master
Are you sure you want to change the base?
Conversation
…t' into feature/advanced-test-environment # Conflicts: # crates/env/src/api.rs # crates/env/src/backend.rs # crates/ink/codegen/src/generator/dispatch.rs
@123OLi did you deploy the main contract? Is the account you are calling indeed the main contract's account id? |
Yes, I have deployed main contract as well and while deploying fallable contract I indeed choose main contract's account id. |
@123OLi but actually you can't just set the callee as AccountId for fallback contract, because as you can see, inside of contract it's type is |
@Artemka374 I set the callee as Main Contract |
@123OLi but it is still AccountId, you can see the type of variable in UI. Also, I've changed the way contracts are deployed and added README, so you can use guide from there. But if you try to just call fallback as you described previously, it won't work, because reentrancy will occur in fallback contract, which is not allowed, so you can try to just call main contract first, and then you will be able to call fallback method directly. |
This is PR for this issue: Supercolony-net/openbrush-contracts#136 (comment)
that was started in Supercolony-net#4
call_flags