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
Detect delegated sender authorization in CustomMessageCallProcessor
#9814
Detect delegated sender authorization in CustomMessageCallProcessor
#9814
Conversation
… fields Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
…nd restrict to delegatable_contract_id keys Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
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.
LGTM as per hedera-base changes ! Thanks @tinker-michaelj
The base branch was changed.
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.
LGTM !
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.
LGTM
…#9814) Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com> Signed-off-by: Nick Poorman <nick@swirldslabs.com>
Description:
delegateContractIdRequiredForTransferInDelegateCall
test fromContractCreateSuite
#8717delegateContractIdRequiredForTransferInDelegateCall()
as a@HapiTest
.develop
, theCustomMessageCallProcessor
incorrectly checks whether the executing frame is adelegatecall
to decide when to activate onlydelegatable_contract_id
keys in areceiverSigRequired
key structure.DELEGATECALL
to transfer value to an account it controls, which does not make sense.FrameUtils.acquiredSenderAuthorizationViaDelegateCall()
method that instead tests if the executing frame acquired itssender
authorization viadelegatecall
(i.e. whether its parent receiver address was running delegated code when it initiated the call represented by the executing frame).Misc - delegates highly unwanted debug logging from
TokenServiceApiImpl
.