Skip to content

Conversation

@aregng
Copy link

@aregng aregng commented Dec 29, 2025

  • Introduced ExecutionMode describing the context of the vm for the transaction being executed

  • Extended Handler with validate_caller() which validates caller address based on the transaction execution mode.

    • System transaction caller is expected to be VM_SIGNER reserved address
    • All User/Automated transactions having any of the supra reserved as caller will fail validation

- Introduced ExecutionMode describing the context of the vm for the
  transaction being executed

- Extended Handler with validate_caller() which validates caller address
  based on the transaction execution mode.
    - System transaction caller is expected to be VM_SIGNER reserved address
    - All User/Automated transactions having any of the supra reserved as
      caller will fail validation
/// Create new `CfgEnv` with default values and specified spec.
pub fn new_with_spec(spec: SPEC) -> Self {
Self {
chain_id: 1,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should chain_id be 1? Is this consistent with chain_id of Move VM?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants