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:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user