We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 430f925 + 668a579 commit 4121a34Copy full SHA for 4121a34
1 file changed
packages/mesh-core-cst/src/utils/builder.ts
@@ -29,16 +29,18 @@ export const buildBaseAddress = (
29
networkId: number,
30
paymentKeyHash: Hash28ByteBase16,
31
stakeKeyHash: Hash28ByteBase16,
32
+ paymentCredType: CredentialType = CredentialType.KeyHash,
33
+ stakeCredType: CredentialType = CredentialType.KeyHash
34
): BaseAddress => {
35
return BaseAddress.fromCredentials(
36
networkId,
37
{
38
hash: paymentKeyHash,
- type: CredentialType.KeyHash,
39
+ type: paymentCredType,
40
},
41
42
hash: stakeKeyHash,
43
+ type: stakeCredType,
44
45
);
46
};
0 commit comments