这是indexloc提供的服务,不要输入任何密码
Skip to content

Add a native function to make the payload type of a Move transaction available at the Move layer #209

@isaacdoidge

Description

@isaacdoidge

Background

@gorman-jacob has requested this functionality so that we can implement protection against test-and-abort attacks against our native VRF feature, which will be integrated in the near future.

Requirements

  • Add a Move enum to represent the different variants of TransactionPayload in the Move state.
  • Add a new native function called transaction_type to expose the variant of the TransactionPayload of the transaction under execution to the Move layer during its execution. The native variant should be converted to the corresponding variant of the new Move enum as a result of this process.
  • Implement integration tests that only succeed if the payload type of the executed transaction matches the variant specified in the Move state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions