Skip to content

Commit

Permalink
Update test contracts for Istanbul
Browse files Browse the repository at this point in the history
* Update to Instanbul expected address

* Update expected EIP712DomainHash

* Update r,s,v for Instanbul
  • Loading branch information
brianmcmichael authored and gbalabasquer committed Jan 23, 2020
1 parent 9926691 commit 62a54de
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/test/dai.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ contract DaiTest is DSTest {
uint deadline = 0;
address cal = 0x29C76e6aD8f28BB1004902578Fb108c507Be341b;
address del = 0xdd2d5D3f7f1b35b7A0601D6A00DbB7D44Af58479;
bytes32 r = 0x66ac2e2213059ebd3d1d05027122eeb18ef4d80ba256499014479c3facc19df9;
bytes32 s = 0x5fed942c61fa87fd050619f947ce59cb3157f90d1279de9ec8d2f3edec639fd8;
bytes32 r = 0xc7a9f6e53ade2dc3715e69345763b9e6e5734bfe6b40b8ec8e122eb379f07e5b;
bytes32 s = 0x14cb2f908ca580a74089860a946f56f361d55bdb13b6ce48a998508b0fa5e776;
uint8 v = 27;
bytes32 _r = 0x3168c59cb4fa9b54016ebf3d56dcca900ccfb92fb55b0af86dfe919c125e4755;
bytes32 _s = 0x013d4a55b43099981f7fed3af5606e1c8469f6f18ccea62d412809376f0a57a3;
uint8 _v = 27;
bytes32 _r = 0x64e82c811ee5e912c0f97ac1165c73d593654a6fc434a470452d8bca6ec98424;
bytes32 _s = 0x5a209fe6efcf6e06ec96620fd968d6331f5e02e5db757ea2a58229c9b3c033ed;
uint8 _v = 28;


function setUp() public {
Expand Down Expand Up @@ -277,15 +277,15 @@ contract DaiTest is DSTest {
function testDaiAddress() public {
//The dai address generated by hevm
//used for signature generation testing
assertEq(address(token), address(0x0F1c6673615352379AFC1a60e3D0234101D67eb2));
assertEq(address(token), address(0xE58d97b6622134C0436d60daeE7FBB8b965D9713));
}

function testTypehash() public {
assertEq(token.PERMIT_TYPEHASH(), 0xea2aa0a1be11a07ed86d755c93467f4f82362b452371d1ba94d1715123511acb);
}

function testDomain_Separator() public {
assertEq(token.DOMAIN_SEPARATOR(), 0x12bf37c2cc038856d7efae7381c12376dea490731e8ad8d1f38179218de0e433);
assertEq(token.DOMAIN_SEPARATOR(), 0xc8bf33c5645588f50a4ef57b0c7959b26b61f1456241cc11261acabb2e7217d9);
}

function testPermit() public {
Expand Down

0 comments on commit 62a54de

Please sign in to comment.