Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
danielailie committed Nov 14, 2024
1 parent ecc03b6 commit 5034537
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/testdata/testwallets/alice.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": 4,
"kind": "secretKey",
"id": "0dc10c02-b59b-4bac-9710-6b2cfa4284ba",
"address": "0139472eff6886771a982f3083da5d421f24c29181e63888228dc81ca60d69e1",
"bech32": "erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th",
Expand Down
1 change: 1 addition & 0 deletions src/testdata/testwallets/bob.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": 4,
"kind": "secretKey",
"id": "85fdc8a7-7119-479d-b7fb-ab4413ed038d",
"address": "8049d639e5a6980d1cd2392abcce41029cda74a1563523a202f09641cc2618f8",
"bech32": "erd1spyavw0956vq68xj8y4tenjpq2wd5a9p2c6j8gsz7ztyrnpxrruqzu66jx",
Expand Down
1 change: 1 addition & 0 deletions src/testdata/testwallets/carol.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": 4,
"kind": "secretKey",
"id": "65894f35-d142-41d2-9335-6ad02e0ed0be",
"address": "b2a11555ce521e4944e09ab17549d85b487dcd26c84b5017a39e31a3670889ba",
"bech32": "erd1k2s324ww2g0yj38qn2ch2jwctdy8mnfxep94q9arncc6xecg3xaq6mjse8",
Expand Down
1 change: 1 addition & 0 deletions src/testdata/testwallets/dan.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": 4,
"kind": "secretKey",
"id": "fc8b9b89-2227-41ec-afd1-5e6853feb7b2",
"address": "b13a017423c366caff8cecfb77a12610a130f4888134122c7937feae0d6d7d17",
"bech32": "erd1kyaqzaprcdnv4luvanah0gfxzzsnpaygsy6pytrexll2urtd05ts9vegu7",
Expand Down
1 change: 1 addition & 0 deletions src/testdata/testwallets/eve.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": 4,
"kind": "secretKey",
"id": "e770c455-a23b-4dcd-a7a5-0e22375dc233",
"address": "3af8d9c9423b2577c6252722c1d90212a4111f7203f9744f76fcfa1d0a310033",
"bech32": "erd18tudnj2z8vjh0339yu3vrkgzz2jpz8mjq0uhgnmklnap6z33qqeszq2yn4",
Expand Down
1 change: 1 addition & 0 deletions src/testdata/testwallets/frank.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": 4,
"kind": "secretKey",
"id": "df70f3ef-bb40-4afd-8751-77b26b29356d",
"address": "b37f5d130beb8885b90ab574a8bfcdd894ca531a7d3d1f3431158d77d6185fbb",
"bech32": "erd1kdl46yctawygtwg2k462307dmz2v55c605737dp3zkxh04sct7asqylhyv",
Expand Down
1 change: 1 addition & 0 deletions src/testdata/testwallets/grace.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": 4,
"kind": "secretKey",
"id": "9aff338f-f504-403c-86cd-5e623bc81c42",
"address": "1e8a8b6b49de5b7be10aaa158a5a6a4abb4b56cc08f524bb5e6cd5f211ad3e13",
"bech32": "erd1r69gk66fmedhhcg24g2c5kn2f2a5k4kvpr6jfw67dn2lyydd8cfswy6ede",
Expand Down
1 change: 1 addition & 0 deletions src/testdata/testwallets/heidi.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": 4,
"kind": "secretKey",
"id": "1b55836f-946f-4dc3-946d-3c27e5096873",
"address": "6e224118d9068ae626878a1cfbebcb6a95a4715db86d1b51e06a04226cf30fd6",
"bech32": "erd1dc3yzxxeq69wvf583gw0h67td226gu2ahpk3k50qdgzzym8npltq7ndgha",
Expand Down
1 change: 1 addition & 0 deletions src/testdata/testwallets/ivan.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": 4,
"kind": "secretKey",
"id": "0b80d732-d4e6-4145-b5bb-698bdd323b3c",
"address": "899451b361a83e89d73b4096d3c90c209b27874c9c7cb01bb08b0bb4dc15693d",
"bech32": "erd13x29rvmp4qlgn4emgztd8jgvyzdj0p6vn37tqxas3v9mfhq4dy7shalqrx",
Expand Down
1 change: 1 addition & 0 deletions src/testdata/testwallets/judy.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": 4,
"kind": "secretKey",
"id": "a3108434-5d2c-4dca-9f94-29e822697e20",
"address": "4a101a0f8f95f1218683900801cd971c6028b1597a771b2ed367d1ede09d9d2a",
"bech32": "erd1fggp5ru0jhcjrp5rjqyqrnvhr3sz3v2e0fm3ktknvlg7mcyan54qzccnan",
Expand Down
1 change: 1 addition & 0 deletions src/testdata/testwallets/mallory.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": 4,
"kind": "secretKey",
"id": "6756aa76-5934-4dc6-90c7-c261db98fe44",
"address": "1454931ffa758ab35654a5206b28e9dbf1fb8df8f9ced093bb2887eb39f7e7af",
"bech32": "erd1z32fx8l6wk9tx4j555sxk28fm0clhr0cl88dpyam9zr7kw0hu7hsx2j524",
Expand Down
1 change: 1 addition & 0 deletions src/testdata/testwallets/mike.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"version": 4,
"kind": "secretKey",
"id": "3f6adbc3-1215-4c31-9a61-a049b430e6f7",
"address": "e32afedc904fe1939746ad973beb383563cf63642ba669b3040f9b9428a5ed60",
"bech32": "erd1uv40ahysflse896x4ktnh6ecx43u7cmy9wnxnvcyp7deg299a4sq6vaywa",
Expand Down
1 change: 0 additions & 1 deletion src/testutils/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export async function loadPassword(): Promise<string> {

export async function loadTestWallet(name: string): Promise<TestWallet> {
const jsonContents = JSON.parse(await readTestWalletFileContents(name + ".json"));
jsonContents.kind = jsonContents.kind ?? "secretKey";
const pemContents = await readTestWalletFileContents(name + ".pem");
const secretKey = UserSecretKey.fromPem(pemContents);
const publicKey = secretKey.generatePublicKey().valueOf();
Expand Down

0 comments on commit 5034537

Please sign in to comment.