You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
seal_is_reentrant returns true if the contract presents in the call stack more than one time. More information about usage of that method in the comment.
How that method should work for the delegate_call case? I will expect that the delegate call doesn't change the reentry state.
The text was updated successfully, but these errors were encountered:
I think we should implement it in a more general way: seal_reentrant_count. It returns how often the currently executing contract exists on the call stack in addition to the calling instance: So a value of 0 means no reentrancy.
How that method should work for the delegate_call case? I will expect that the delegate call doesn't change the reentry state.
I suppose so. Delegated calls should be counted as the same instance.
seal_is_reentrant
returns true if the contract presents in the call stack more than one time. More information about usage of that method in the comment.How that method should work for the
delegate_call
case? I will expect that the delegate call doesn't change the reentry state.The text was updated successfully, but these errors were encountered: