Skip to content

Commit 67fd8b9

Browse files
committed
add test case ensuring that Address is converted properly
1 parent 1711901 commit 67fd8b9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/e2e/src/bindings.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
generateFundedKeypair,
1010
installContract,
1111
} from "./util";
12-
import { contract } from "../../../lib";
12+
import { Address, contract } from "../../../lib";
1313

1414
const CLI_PATH = path.resolve(__dirname, "../../../bin/stellar-js");
1515

@@ -323,7 +323,11 @@ describe("Generated Bindings E2E Test", () => {
323323
const addresseResult = await client.addresse({
324324
addresse: keypair.publicKey(),
325325
});
326+
const addresseResultWithAddress = await client.addresse({
327+
addresse: Address.fromString(keypair.publicKey()),
328+
});
326329
expect(addresseResult.result).toBe(keypair.publicKey());
330+
expect(addresseResultWithAddress.result).toBe(keypair.publicKey());
327331

328332
// Test bytes method
329333
const bytesInput = Buffer.from("hello");

0 commit comments

Comments
 (0)