Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
🔥 Remove verify transaction in sign transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
shuse2 committed May 24, 2018
1 parent b7d5b8e commit 7f57104
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
2 changes: 0 additions & 2 deletions src/commands/sign_transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ export const actionCreator = vorpal => async ({
throw new Error(transactionObject.error);
}

transactions.utils.verifyTransaction(transactionObject);

const { passphrase, secondPassphrase } = await getInputsFromSources(vorpal, {
passphrase: {
source: passphraseSource,
Expand Down
16 changes: 0 additions & 16 deletions test/specs/commands/sign_transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ describe('sign transaction command', () => {
'the action is called with the stringified transaction object',
when.theActionIsCalledWithTheStringifiedTransactionObject,
() => {
Then(
'it should call VerifyTransaction only with the transaction',
then.itShouldCallVerifyTransactionOnlyWithTheTransaction,
);
Then(
'it should call prepareTransaction with the transaction and the passphrase',
then.itShouldCallPrepareTransactionWithTheTransactionAndThePassphrase,
Expand All @@ -113,10 +109,6 @@ describe('sign transaction command', () => {
'the action is called with the stringified transaction object via vorpal stdIn',
when.theActionIsCalledWithTheStringifiedTransactionObjectViaVorpalStdIn,
() => {
Then(
'it should call VerifyTransaction only with the transaction',
then.itShouldCallVerifyTransactionOnlyWithTheTransaction,
);
Then(
'it should call prepareTransaction with the transaction and the passphrase',
then.itShouldCallPrepareTransactionWithTheTransactionAndThePassphrase,
Expand All @@ -127,10 +119,6 @@ describe('sign transaction command', () => {
'the action is called with the stringified transaction object and options',
when.theActionIsCalledWithTheStringifiedTransactionObjectAndOptions,
() => {
Then(
'it should call VerifyTransaction only with the transaction',
then.itShouldCallVerifyTransactionOnlyWithTheTransaction,
);
Then(
'it should call prepareTransaction with the transaction and the passphrase',
then.itShouldCallPrepareTransactionWithTheTransactionAndThePassphrase,
Expand All @@ -141,10 +129,6 @@ describe('sign transaction command', () => {
'the action is called with the stringified transaction object via vorpal stdIn and options',
when.theActionIsCalledWithTheStringifiedTransactionObjectViaVorpalStdInAndOptions,
() => {
Then(
'it should call VerifyTransaction only with the transaction',
then.itShouldCallVerifyTransactionOnlyWithTheTransaction,
);
Then(
'it should call prepareTransaction with the transaction and the passphrase',
then.itShouldCallPrepareTransactionWithTheTransactionAndThePassphrase,
Expand Down

0 comments on commit 7f57104

Please sign in to comment.