Add test wallets

This commit is contained in:
2024-06-02 15:56:52 +07:00
parent 45c71b3ddf
commit 897ff94a66
4 changed files with 25 additions and 16 deletions

View File

@@ -11,7 +11,7 @@ public class UserService : IUserService
private readonly IUserRepository _userRepository;
private readonly IAccountService _accountService;
private string[] authorizedAddresses = new string[] { "0x6781920674dA695aa5120d95D80c4B1788046806" };
private string[] authorizedAddresses = ["0x6781920674dA695aa5120d95D80c4B1788046806", "0xA2B43AFF0992a47838DF2e6099A8439981f0B717"];
public UserService(
IEvmManager evmManager,
@@ -29,7 +29,7 @@ public class UserService : IUserService
if (!authorizedAddresses.Contains(recoveredAddress))
throw new Exception("Address not authorized");
if (recoveredAddress == null || !recoveredAddress.Equals(address))
throw new Exception("Address not corresponding");