fix bigint type (#510)

This commit is contained in:
Nantian
2021-08-13 23:08:59 +12:00
committed by GitHub
parent 544fbb5e6d
commit 3f0c2d82e8
+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%