Skip to content

Add fiat deposit and withdrawal functionality with tests#9

Closed
jobbykings wants to merge 5 commits intocaxtonacollins:mainfrom
jobbykings:feature/fiat-deposit-withdraw
Closed

Add fiat deposit and withdrawal functionality with tests#9
jobbykings wants to merge 5 commits intocaxtonacollins:mainfrom
jobbykings:feature/fiat-deposit-withdraw

Conversation

@jobbykings
Copy link

Summary

This PR implements deposit_fiat and withdraw_fiat functions in the account.cairo contract, including event emissions and proper balance checks.

Key Changes

  • Added deposit_fiat and withdraw_fiat logic to account.cairo.
  • Included error handling for edge cases (e.g., zero or over-balance withdrawals).
  • Created tests/test_account.cairo to validate all major flows.

@jobbykings
Copy link
Author

@caxtonacollins i have resolved the conflicts

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.

2 participants