Skip to content

Conversation

@arr00
Copy link
Contributor

@arr00 arr00 commented Sep 24, 2025

No description provided.

@arr00 arr00 requested a review from a team as a code owner September 24, 2025 13:17
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 24, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/update-rwa

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

await expect(
fhevm.userDecryptEuint(FhevmType.euint64, frozenHandle, await token.getAddress(), agent1),
).to.eventually.equal(50); // frozen is left unchanged
).to.eventually.equal(25); // frozen is left unchanged
Copy link
Contributor

Choose a reason for hiding this comment

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

Mixing frozen & unfrozen, here is an example of inconsistency:

const encryptedFrozenValueInput = await fhevm
.createEncryptedInput(await token.getAddress(), agent1.address)
.add64(50)

and:
).to.eventually.equal(25); // frozen is left unchanged

await expect(
fhevm.userDecryptEuint(FhevmType.euint64, frozenHandle, await token.getAddress(), agent1),
).to.eventually.equal(25); // frozen is left unchanged
).to.eventually.equal(25); // is decreased by transfer amount
Copy link
Contributor

Choose a reason for hiding this comment

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

Only 50 are frozen which means the other 50 are available. Those 50 available have nothing to deal with the 50 frozen ones and are instead free to circulate.

@arr00
Copy link
Contributor Author

arr00 commented Sep 24, 2025

@james-toussaint following the discussion today, lets merge this if there are no other issues. We can follow up tomorrow and delete the unfreeze logic if necessary.

@arr00 arr00 merged commit ac8b822 into feature/confidential-rwa Sep 25, 2025
10 checks passed
@arr00 arr00 deleted the chore/update-rwa branch September 25, 2025 10:03
james-toussaint added a commit that referenced this pull request Sep 29, 2025
* Init `ERC7984Rwa` extension.

* Fix typos

* Add agent role

* Update spelling

* Add pausable & roles tests

* Add mint/burn/force/transfer tests

* Remove tmp freezable

* Name ERC7984Rwa

* Name confidential

* Move RWA test

* Test with & without proof

* Rwa mock uses freezable

* Check transferred amounts in tests

* Bypass hardhat fhevm behaviour

* Add support interface test

* Add should not force transfer if anyone

* Move some modifiers to mock

* Update doc

* Swap items in doc

* Add suggestions

* Remove lint annotation

* Update test name

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Add restriction to ERC7984Rwa

* Move gates

* Remove ExpectedPause error

* Rename block functions

* Rename fixture

* Force transfer with all update effects

* Update set frozen doc

* Refactor event checks in freezable tests

* Use agent for operations

* Natively bypass freezable and restricted extensions on force transfer

* Expose single rwa interface

* Fix force transfer receiver blocked test

* Remove freezer check since internal parent

* Add pre check and post hook on transfers

* Add access control tests

* Remove dup test

* Improve pre update wording in freezable

* Rename to preTransferCheck

* Remove restricted interface

* Check acl & order functions

* Remove pre and post

* More explicit wording

* Remove freezer from mock and fix typo

* Update RWA (#214)

* Update RWA

* fix lint

* up

* update comment

* update tests

* review feedback

* up

* Nit

* inherit interface and inline selector calc

* Lint import order

* Precompute force transfer signatures

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Arr00 <13561405+arr00@users.noreply.github.com>
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