fix(registry): one-time setRegistry on GRUAssetRegistryFacet (GRU-005).
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Has been cancelled
CI/CD Pipeline / Security Scanning (push) Has been cancelled
CI/CD Pipeline / Lint and Format (push) Has been cancelled
CI/CD Pipeline / Terraform Validation (push) Has been cancelled
CI/CD Pipeline / Kubernetes Validation (push) Has been cancelled
Validation / validate-genesis (push) Has started running
Validation / validate-terraform (push) Has been cancelled
Validation / validate-kubernetes (push) Has been cancelled
Validation / validate-smart-contracts (push) Has been cancelled
Validation / validate-security (push) Has been cancelled
Validation / validate-documentation (push) Has been cancelled
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Has been cancelled
CI/CD Pipeline / Security Scanning (push) Has been cancelled
CI/CD Pipeline / Lint and Format (push) Has been cancelled
CI/CD Pipeline / Terraform Validation (push) Has been cancelled
CI/CD Pipeline / Kubernetes Validation (push) Has been cancelled
Validation / validate-genesis (push) Has started running
Validation / validate-terraform (push) Has been cancelled
Validation / validate-kubernetes (push) Has been cancelled
Validation / validate-smart-contracts (push) Has been cancelled
Validation / validate-security (push) Has been cancelled
Validation / validate-documentation (push) Has been cancelled
Prevent post-init registry pointer swaps; add test_setRegistry_oneTimeOnly (8/8 GRUCompliantTokensRegistryTest). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -53,6 +53,13 @@ contract GRUCompliantTokensRegistryTest is Test {
|
||||
vm.stopPrank();
|
||||
}
|
||||
|
||||
function test_setRegistry_oneTimeOnly() public {
|
||||
GRUAssetRegistryFacet localFacet = new GRUAssetRegistryFacet();
|
||||
localFacet.setRegistry(address(registry));
|
||||
vm.expectRevert("RegistryAlreadySet");
|
||||
localFacet.setRegistry(makeAddr("otherRegistry"));
|
||||
}
|
||||
|
||||
function test_registerGRUCompliantAsset_cUSDT() public {
|
||||
vm.prank(admin);
|
||||
registry.registerGRUCompliantAsset(
|
||||
|
||||
Reference in New Issue
Block a user