Skip to content

Commit

Permalink
Merge e72e30e into df79e98
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymoussprocket committed Jun 15, 2020
2 parents df79e98 + e72e30e commit 0ea5ee0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ registerLogger(logger);
registerFetch(fetch);

let signer: Signer;
const keyStore = KeyStoreUtils.RestoreIdentityFromSecretKey ('edskRgu8wHxjwayvnmpLDDijzD3VZDoAH7ZLqJWuG4zg7LbxmSWZWhtkSyM5Uby41rGfsBGk4iPKWHSDniFyCRv3j7YFCknyHH');
const keyStore = await KeyStoreUtils.restoreIdentityFromSecretKey ('edskRgu8wHxjwayvnmpLDDijzD3VZDoAH7ZLqJWuG4zg7LbxmSWZWhtkSyM5Uby41rGfsBGk4iPKWHSDniFyCRv3j7YFCknyHH');
signer = new SoftSigner(TezosMessageUtils.writeKeyWithHint(keyStore.secretKey, 'edsk'));
```

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "conseiljs",
"version": "5.0.2-beta.0",
"version": "5.0.2-beta.1",
"description": "Client-side library for dApp development.",
"browser": "dist/index-web.js",
"main": "dist/index.js",
Expand Down Expand Up @@ -58,9 +58,7 @@
"require": [
"ts-node/register"
],
"reporter": [
"text-lcov"
],
"reporter": [ "text", "text-lcov" ],
"sourceMap": true,
"instrument": true
},
Expand Down
2 changes: 1 addition & 1 deletion src/chain/tezos/TezosNodeWriter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export namespace TezosNodeWriter {
const blockHead = await TezosNodeReader.getBlockHead(server);
const forgedOperationGroup = forgeOperations(blockHead.hash, operations);

const opSignature = await signer.sign(Buffer.from(TezosConstants.OperationGroupWatermark + forgedOperationGroup, 'hex'));
const opSignature = await signer.signOperation(Buffer.from(TezosConstants.OperationGroupWatermark + forgedOperationGroup, 'hex'));

const signedOpGroup = Buffer.concat([Buffer.from(forgedOperationGroup, 'hex'), opSignature]);
const hexSignature = TezosMessageUtils.readSignatureWithHint(opSignature, 'edsig');
Expand Down
2 changes: 1 addition & 1 deletion src/reporting/tezos/TezosConseilClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export namespace TezosConseilClient {
* @see [Conseil Query Format Spec]{@link https://github.com/Cryptonomic/Conseil/blob/master/docs/README.md#tezos-chain-data-query}
*/
export async function getBlocks(serverInfo: ConseilServerInfo, network: string, query: ConseilQuery): Promise<any[]> {
return getTezosEntityData(serverInfo, network, BLOCKS, query)
return getTezosEntityData(serverInfo, network, BLOCKS, query);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/types/ExternalInterfaces.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export interface Signer {
sign: (bytes: Buffer) => Promise<Buffer>;
signOperation: (bytes: Buffer) => Promise<Buffer>;
signText: (message: string) => Promise<string>;
}

Expand Down

0 comments on commit 0ea5ee0

Please sign in to comment.