fix bigint type (#510)

This commit is contained in:
Nantian authored and GitHub committed 2021-08-13 13:08:59 +02:00
1 parent 544fbb5e6d
commit 3f0c2d82e8
1 file changed
+1 -1
+1 -1
View File
@@ -45,7 +45,7 @@ export class Keyring extends Base implements KeyringStruct {
return this.addExternal(address, { ...meta, hardwareType, isHardware: true });
}
public addMultisig (addresses: (string | Uint8Array)[], threshold: BigInt | BN | number, meta: KeyringPair$Meta = {}): CreateResult {
public addMultisig (addresses: (string | Uint8Array)[], threshold: bigint | BN | number, meta: KeyringPair$Meta = {}): CreateResult {
const address = createKeyMulti(addresses, threshold);
// we could use `sortAddresses`, but rather use internal encode/decode so we are 100%