Adapt to new @polkadot/keyring KeyPair interface (#994)

* Adapt to new @polkadot/keyring KeyPair interface

* Pull in common 0.93.0-beta.4
This commit is contained in:
Axel Chalon
2019-06-13 10:44:47 +02:00
committed by Jaco Greeff
parent c43378beb2
commit 3ab581119d
27 changed files with 107 additions and 107 deletions
@@ -147,7 +147,7 @@ export default class ExtrinsicSignature extends Struct implements IExtrinsicSign
* @description Generate a payload and pplies the signature from a keypair
*/
sign (method: Method, account: IKeyringPair, { blockHash, era, nonce, version }: SignatureOptions): ExtrinsicSignature {
const signer = new Address(account.publicKey());
const signer = new Address(account.publicKey);
const signingPayload = new SignaturePayload({
nonce,
method,
+2 -2
View File
@@ -10,8 +10,8 @@ import Method from './primitive/Method';
import Address from './primitive/Address';
export type IKeyringPair = {
address: () => string,
publicKey: () => Uint8Array,
address: string,
publicKey: Uint8Array,
sign: (data: Uint8Array) => Uint8Array;
};