Allow passing of signer via sign options (#1734)

* Allow passing of signer via sign options

* Pass signer via api.sign
This commit is contained in:
Jaco Greeff
2020-01-21 14:45:53 +01:00
committed by GitHub
parent be3f9c8fe8
commit 20ed3bb5fe
4 changed files with 29 additions and 21 deletions
+2
View File
@@ -9,6 +9,7 @@ import { Address, Balance, Call, EcdsaSignature, Ed25519Signature, Index, Sr2551
import BN from 'bn.js';
import { InterfaceRegistry } from './interfaceRegistry';
import { Signer } from '@polkadot/api/types';
export * from './codec/types';
@@ -166,6 +167,7 @@ export interface SignatureOptions {
genesisHash: AnyU8a;
nonce: AnyNumber;
runtimeVersion: RuntimeVersionInterface;
signer?: Signer;
tip?: AnyNumber;
}