Skip to content

Add account lock and display balance handling - #103

Open
nart202020-arch wants to merge 1 commit into
scrtlabs:masterfrom
nart202020-arch:master
Open

Add account lock and display balance handling#103
nart202020-arch wants to merge 1 commit into
scrtlabs:masterfrom
nart202020-arch:master

Conversation

@nart202020-arch

Copy link
Copy Markdown

Summary

This PR adds account-specific locking and display balance handling.

Changes

  • Adds a configurable lock period for the designated account.
  • Prevents Transfer and TransferFrom while the account is locked.
  • Prevents BurnFrom and BatchBurnFrom while the account is locked.
  • Allows normal transfers after the lock expires.
  • Adds DisplayBalance handling for the locked account during the lock period.
  • Adds tests covering lock enforcement and expiry.

Testing

All tests pass:

  • 43 passed
  • 0 failed
  • 1 ignored
  • git diff --check passes

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.

1 participant