seal_reentrant_count returns contract reentrant count #11539
seal_reentrant_count returns contract reentrant count #11539yarikbratashchuk wants to merge 32 commits intoparitytech:masterfrom
seal_reentrant_count returns contract reentrant count #11539Conversation
agryaznov
left a comment
There was a problem hiding this comment.
Thank you for the PR! Here is the first review round. Also please try to make the CI green.
| (func (export "call") | ||
| (local $account_entrance_count i32) | ||
|
|
||
| ;; Reading "callee" contract address (which is the address of the caller) |
There was a problem hiding this comment.
I meant here that the way the contract fixture is being called, and hence the expected state of the call stack - this all should be set in the outer unit test, and no assumption on this regard should be hard-coded into the fixture. Just return the account_entrance_count with $seal_return and check it outside the contract.
agryaznov
left a comment
There was a problem hiding this comment.
Please merge master and address the highlighted issues (just a few left).
|
Could you review again please? I updated everything, should be ok |
|
fixed |
agryaznov
left a comment
There was a problem hiding this comment.
could you please satisfy the CI?
|
/benchmark runtime pallet pallet_contracts |
|
/cmd queue -c bench-bot $ pallet dev pallet_contracts |
|
@athei https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2033704 was started for your command Comment |
|
@cr4pt0 Can you please sign the CLA or we can't merge? Or anyone rewrite the branch to remove the commit in question. |
|
@athei Command |
|
we can't get the signature right now, because this person is not working with us now, so I opened another pull request with all these changes. |
|
CI is satisfied there, just need some approvals again |
|
Replaced by #12695 |
This PR addresses #11082.