Skip to content

Commit 4ec72e2

Browse files
authored
Update API call in NPM test
1 parent 06e1597 commit 4ec72e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cardano-wasm/npm-wrapper/api.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ describe('Cardano API', () => {
2323
const outputAddress = "addr_test1vzpfxhjyjdlgk5c0xt8xw26avqxs52rtf69993j4tajehpcue4v2v";
2424

2525
// Restore wallet and verify the address
26-
const wallet = await api.restoreTestnetPaymentWalletFromSigningKeyBech32(PREVIEW_MAGIC_NUMBER, secretKey);
26+
const wallet = await api.wallet.testnet.restoreTestnetPaymentWalletFromSigningKeyBech32(PREVIEW_MAGIC_NUMBER, secretKey);
27+
2728
const bech32Address = await wallet.getAddressBech32();
2829
expect(bech32Address).toBe(expectedAddress);
2930

0 commit comments

Comments
 (0)