@@ -10,9 +10,9 @@ import {ChainType, HistoryKind, UnsupportedTokenType} from "../Types.sol";
1010 * @dev Overrides the keypair generation to avoid calling Sapphire precompiles.
1111 */
1212contract MockAccounting is Accounting {
13- // Address matching the test transaction on Base Sepolia (block 32680090, tx 45)
14- address private constant TEST_ADDRESS = 0x284a3Fe2939a4e4859e6321537d4264533E3D549 ;
15- bytes32 private constant TEST_SECRET = bytes32 (uint256 ( 1 ) );
13+ // Test keypair: #4 of "chimney theory present latin find behave ankle clock shadow earn suit reflect"
14+ address private constant TEST_ADDRESS = 0xe6F321Fb3D912Db48DE460560B8bB99B57AeAcA2 ;
15+ bytes32 private constant TEST_SECRET = bytes32 (0x9147e5178b1ee427d704dcdb699f1adf9c8a3b58480a6118635a3486ad3a35ce );
1616
1717 /// @custom:oz-upgrades-unsafe-allow constructor
1818 constructor (address siweAuthAddress ) Accounting (siweAuthAddress) {}
@@ -21,16 +21,6 @@ contract MockAccounting is Accounting {
2121 __Accounting_init (_roflAppID, _owner);
2222 }
2323
24- function _deriveDepositKeypair (
25- address beneficiary ,
26- ChainType /* chainType */ ,
27- uint256 /* version */
28- ) internal pure override returns (address depositAddr , bytes32 depositSecret ) {
29- // Deterministic mock: derive from beneficiary address
30- depositSecret = keccak256 (abi.encode (TEST_SECRET, beneficiary));
31- depositAddr = address (uint160 (uint256 (depositSecret)));
32- }
33-
3424 function _generateKeypair () internal pure override returns (address , bytes32 ) {
3525 return (TEST_ADDRESS, TEST_SECRET);
3626 }
@@ -74,18 +64,6 @@ contract MockAccounting is Accounting {
7464 emit Deposit (tokenId, amount, depositId);
7565 }
7666
77- /**
78- * @notice Test helper: get deposit address for a beneficiary.
79- * @dev Bypasses EIP-712 sig verification for testing.
80- */
81- function mockGetDepositAddress (
82- address beneficiary ,
83- ChainType chainType ,
84- uint256 version
85- ) external pure returns (address depositAddr ) {
86- (depositAddr, ) = _deriveDepositKeypair (beneficiary, chainType, version);
87- }
88-
8967 /**
9068 * @notice Test helper: set roflSignerAddress without onlyROFL check.
9169 * @dev Bypasses ROFL auth for Hardhat testing; onlyROFL calls the Sapphire
0 commit comments