Skip to content

Commit

Permalink
local attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
aroralanuk committed Dec 17, 2024
1 parent 98aea1e commit e33a8a1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions solidity/test/FraudProofRouter.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,26 @@ contract FraudProofRouterTest is Test {
DIGEST
);
}

function test_sendFraudProof_localDomain() public {
testAcf.mockSetAttribution(SIGNER, DIGEST, FraudType.Whitelist);

originFpr.sendFraudProof(
LOCAL_DOMAIN,
SIGNER,
TypeCasts.addressToBytes32(address(testMerkleHook)),
DIGEST
);

(FraudType actualFraudType, uint48 actualTimestamp) = originFpr
.fraudAttributions(
LOCAL_DOMAIN,
SIGNER,
TypeCasts.addressToBytes32(address(testMerkleHook)),
DIGEST
);

assert(actualFraudType == FraudType.Whitelist);
assertEq(actualTimestamp, block.timestamp);
}
}

0 comments on commit e33a8a1

Please sign in to comment.