Skip to content

feat(contract): execute with nonce check and ContractError#43

Merged
wheval merged 4 commits intoancore-org:mainfrom
Agbasimere:feat/contract-execute-nonce
Feb 26, 2026
Merged

feat(contract): execute with nonce check and ContractError#43
wheval merged 4 commits intoancore-org:mainfrom
Agbasimere:feat/contract-execute-nonce

Conversation

@Agbasimere
Copy link
Contributor

Summary

Closes #30

  • Add ContractError enum and use it in the account contract instead of raw panics.
  • Implement execute() with nonce validation, contract invoke, and return value.
  • Replace panics with ContractError in initialize and get_owner.
  • Add tests for nonce validation and cross-contract execution.

Type of change

  • New feature (nonce-gated execute)
  • Refactor (error handling via ContractError)

Checklist

  • Contract builds
  • Tests added/updated

@wheval wheval merged commit b0fa82e into ancore-org:main Feb 26, 2026
1 of 4 checks passed
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.

[FEATURE] : Contract — Implement Signature Validation and Nonce Checks in execute()

2 participants