-
Notifications
You must be signed in to change notification settings - Fork 2.6k
seal_reentrant_count
returns contract reentrant count
#11539
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR! Here is the first review round. Also please try to make the CI green.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consider using some tooling to format your wat files if you can't do it by hand. This is also way too light on tests. It just tests the bare minimum happy case. The interaction with delegate calls needs to be tested.
(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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please merge master and address the highlighted issues (just a few left).
Could you review again please? I updated everything, should be ok |
fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.