Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wshino committed Sep 26, 2024
1 parent d118f14 commit c8d2a2b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions packages/contracts/test/EmailWalletCore.cmd.extension.oauth.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ contract OauthExtensionCommandTest is EmailWalletCoreTestHelper {
vm.startPrank(relayer);
_signUp(username);
console.log("wallet of username", oauthCore.walletOfUsername(username));
_registerEpheAddr(ephePrivKey, username, epheAddr);
_registerEpheAddr(oauthCore.walletOfUsername(username), epheAddr);
EmailOp memory emailOp = _getBaseEmailOp();
emailOp.command = "Sign-in";
uint nonce = oauthCore.nextNonceOfWallet(walletAddr) - 1;
Expand Down Expand Up @@ -359,7 +359,7 @@ contract OauthExtensionCommandTest is EmailWalletCoreTestHelper {
vm.startPrank(relayer);
_signUp(username);
console.log("wallet of username", oauthCore.walletOfUsername(username));
_registerEpheAddr(ephePrivKey, username, epheAddr);
_registerEpheAddr(oauthCore.walletOfUsername(username), epheAddr);
EmailOp memory emailOp = _getBaseEmailOp();
emailOp.command = "Sign-in";
uint nonce = oauthCore.nextNonceOfWallet(walletAddr) - 1;
Expand Down Expand Up @@ -405,7 +405,7 @@ contract OauthExtensionCommandTest is EmailWalletCoreTestHelper {
vm.startPrank(relayer);
_signUp(username);
console.log("wallet of username", oauthCore.walletOfUsername(username));
_registerEpheAddr(ephePrivKey, username, epheAddr);
_registerEpheAddr(oauthCore.walletOfUsername(username), epheAddr);
EmailOp memory emailOp = _getBaseEmailOp();
emailOp.command = "Sign-in";
uint nonce = oauthCore.nextNonceOfWallet(walletAddr) - 1;
Expand Down Expand Up @@ -444,7 +444,7 @@ contract OauthExtensionCommandTest is EmailWalletCoreTestHelper {
test_Oauth_DAIApprove();

vm.startPrank(relayer);
_registerEpheAddr(ephePrivKey, username, epheAddr);
_registerEpheAddr(walletAddr, epheAddr);
EmailOp memory emailOp = _getBaseEmailOp();
emailOp.command = "Sign-in";
uint nonce = oauthCore.nextNonceOfWallet(walletAddr) - 1;
Expand Down Expand Up @@ -597,7 +597,7 @@ contract OauthExtensionCommandTest is EmailWalletCoreTestHelper {
vm.startPrank(relayer);
_signUp(username);
console.log("wallet of username", oauthCore.walletOfUsername(username));
_registerEpheAddr(ephePrivKey, username, epheAddr);
_registerEpheAddr(oauthCore.walletOfUsername(username), epheAddr);
EmailOp memory emailOp = _getBaseEmailOp();
emailOp.command = "Sign-in";
uint nonce = oauthCore.nextNonceOfWallet(walletAddr) - 1;
Expand Down Expand Up @@ -672,7 +672,7 @@ contract OauthExtensionCommandTest is EmailWalletCoreTestHelper {
vm.startPrank(relayer);
_signUp(username);
console.log("wallet of username", oauthCore.walletOfUsername(username));
_registerEpheAddr(ephePrivKey, username, epheAddr);
_registerEpheAddr(oauthCore.walletOfUsername(username), epheAddr);
EmailOp memory emailOp = _getBaseEmailOp();
emailOp.command = "Sign-in";
uint nonce = oauthCore.nextNonceOfWallet(walletAddr) - 1;
Expand Down Expand Up @@ -727,7 +727,7 @@ contract OauthExtensionCommandTest is EmailWalletCoreTestHelper {
vm.startPrank(relayer);
_signUp(username);
console.log("wallet of username", oauthCore.walletOfUsername(username));
_registerEpheAddr(ephePrivKey, username, epheAddr);
_registerEpheAddr(oauthCore.walletOfUsername(username), epheAddr);
EmailOp memory emailOp = _getBaseEmailOp();
emailOp.command = "Sign-in";
uint nonce = oauthCore.nextNonceOfWallet(walletAddr) - 1;
Expand Down Expand Up @@ -789,7 +789,7 @@ contract OauthExtensionCommandTest is EmailWalletCoreTestHelper {
vm.startPrank(relayer);
_signUp(username);
console.log("wallet of username", oauthCore.walletOfUsername(username));
_registerEpheAddr(ephePrivKey, username, epheAddr);
_registerEpheAddr(oauthCore.walletOfUsername(username), epheAddr);
EmailOp memory emailOp = _getBaseEmailOp();
emailOp.command = "Sign-in";
uint nonce = oauthCore.nextNonceOfWallet(walletAddr) - 1;
Expand Down Expand Up @@ -879,7 +879,7 @@ contract OauthExtensionCommandTest is EmailWalletCoreTestHelper {
vm.startPrank(relayer);
_signUp(username);
console.log("wallet of username", oauthCore.walletOfUsername(username));
_registerEpheAddr(ephePrivKey, username, epheAddr);
_registerEpheAddr(oauthCore.walletOfUsername(username), epheAddr);
EmailOp memory emailOp = _getBaseEmailOp();
emailOp.command = "Sign-in";
uint nonce = oauthCore.nextNonceOfWallet(walletAddr) - 1;
Expand Down Expand Up @@ -927,7 +927,7 @@ contract OauthExtensionCommandTest is EmailWalletCoreTestHelper {
vm.startPrank(relayer);
_signUp(username);
console.log("wallet of username", oauthCore.walletOfUsername(username));
_registerEpheAddr(ephePrivKey, username, epheAddr);
_registerEpheAddr(oauthCore.walletOfUsername(username), epheAddr);
EmailOp memory emailOp = _getBaseEmailOp();
emailOp.command = "Sign-in";
uint nonce = oauthCore.nextNonceOfWallet(walletAddr) - 1;
Expand Down Expand Up @@ -983,7 +983,7 @@ contract OauthExtensionCommandTest is EmailWalletCoreTestHelper {
vm.startPrank(relayer);
_signUp(username);
console.log("wallet of username", oauthCore.walletOfUsername(username));
_registerEpheAddr(ephePrivKey, username, epheAddr);
_registerEpheAddr(oauthCore.walletOfUsername(username), epheAddr);
EmailOp memory emailOp = _getBaseEmailOp();
emailOp.command = "Sign-in";
uint nonce = oauthCore.nextNonceOfWallet(walletAddr) - 1;
Expand Down Expand Up @@ -1040,7 +1040,7 @@ contract OauthExtensionCommandTest is EmailWalletCoreTestHelper {
vm.startPrank(relayer);
_signUp(username);
console.log("wallet of username", oauthCore.walletOfUsername(username));
_registerEpheAddr(ephePrivKey, username, epheAddr);
_registerEpheAddr(oauthCore.walletOfUsername(username), epheAddr);
EmailOp memory emailOp = _getBaseEmailOp();
emailOp.command = "Sign-in";
uint nonce = oauthCore.nextNonceOfWallet(walletAddr) - 1;
Expand Down Expand Up @@ -1103,7 +1103,7 @@ contract OauthExtensionCommandTest is EmailWalletCoreTestHelper {
vm.startPrank(relayer);
_signUp(username);
console.log("wallet of username", oauthCore.walletOfUsername(username));
_registerEpheAddr(ephePrivKey, username, epheAddr);
_registerEpheAddr(oauthCore.walletOfUsername(username), epheAddr);
EmailOp memory emailOp = _getBaseEmailOp();
emailOp.command = "Sign-in";
uint nonce = oauthCore.nextNonceOfWallet(walletAddr) - 1;
Expand Down Expand Up @@ -1188,7 +1188,7 @@ contract OauthExtensionCommandTest is EmailWalletCoreTestHelper {
vm.startPrank(relayer);
_signUp(username);
console.log("wallet of username", oauthCore.walletOfUsername(username));
_registerEpheAddr(ephePrivKey, username, epheAddr);
_registerEpheAddr(oauthCore.walletOfUsername(username), epheAddr);
EmailOp memory emailOp = _getBaseEmailOp();
emailOp.command = "Sign-in";
uint nonce = oauthCore.nextNonceOfWallet(walletAddr) - 1;
Expand Down

0 comments on commit c8d2a2b

Please sign in to comment.