// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8.18;

import "utils/Test.sol";

contract RememberTest is Test {
    function testRememberKey() public {
        string memory mnemonic = "test test test test test test test test test test test junk";

        uint256 privateKey = vm.deriveKey(mnemonic, 0);
        assertEq(privateKey, 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80);

        address thisAddress = vm.rememberKey(privateKey);
        assertEq(thisAddress, 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266);
    }
}
