Skip to content

Commit 0040bf6

Browse files
committed
improve buildBaseAddress
1 parent dcd529e commit 0040bf6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/mesh-core-cst/src/utils/builder.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,18 @@ export const buildBaseAddress = (
2929
networkId: number,
3030
paymentKeyHash: Hash28ByteBase16,
3131
stakeKeyHash: Hash28ByteBase16,
32+
paymentCredType: CredentialType = CredentialType.KeyHash,
33+
stakeCredType: CredentialType = CredentialType.KeyHash
3234
): BaseAddress => {
3335
return BaseAddress.fromCredentials(
3436
networkId,
3537
{
3638
hash: paymentKeyHash,
37-
type: CredentialType.KeyHash,
39+
type: paymentCredType,
3840
},
3941
{
4042
hash: stakeKeyHash,
41-
type: CredentialType.KeyHash,
43+
type: stakeCredType,
4244
},
4345
);
4446
};

0 commit comments

Comments
 (0)