hedera-services icon indicating copy to clipboard operation
hedera-services copied to clipboard

feat: Implement pureChecks and preHandle validation logic for TokenRejectHandler

Open MrValioBg opened this issue 9 months ago • 0 comments

Description:

This PR adds validation logic for the TokenReject functionality.

pureChecks: We have implemented all possible checks, conducted without using external sources and relying solely on the context provided with the TokenRejectTransactionBody.

preHandle: We validate all non-payer keys, in this case, the key of the AccountID specified in the TokenRejectTransactionBody, and require it to sign the transaction.

Related issue(s):

Fixes #13014

Notes for reviewer:

  • This PR is not aimed for develop.
  • We expect compile-time error, as the branch for the protobuf changes is not yet updated in the protobuf repo.

Checklist

  • [ ] Documented (Code comments, README, etc.)
  • [ ] Tested (unit, integration, etc.)

MrValioBg avatar May 07 '24 13:05 MrValioBg