Skip to content

Commit

Permalink
DigixGlobal#70 rubocop formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
bshevchenko committed Sep 4, 2019
1 parent e5764cf commit 5b144d3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
8 changes: 4 additions & 4 deletions app/models/watching_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ def resend # For 5 minute cron job
web3 = Web3::Eth::Rpc.new host: ENV.fetch('INFURA_SERVER_URL') { 'mainnet.infura.io' },
port: 443,
connect_options: {
open_timeout: 20,
read_timeout: 140,
use_ssl: true,
rpc_path: ENV.fetch('INFURA_SERVER_KEY')
open_timeout: 20,
read_timeout: 140,
use_ssl: true,
rpc_path: ENV.fetch('INFURA_SERVER_KEY')
}

WatchingTransaction.find_each do |tx|
Expand Down
1 change: 0 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 2019_08_26_132750) do

create_table "active_storage_attachments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
Expand Down
18 changes: 9 additions & 9 deletions test/graphql/resend_transaction_mutation_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ class ResendTransactionMutationTest < ActiveSupport::TestCase
}

tx2_result = DaoServerSchema.execute(
QUERY2,
context: { current_user: user },
variables: attrs
QUERY2,
context: { current_user: user },
variables: attrs
)

assert_nil tx2_result['errors'],
Expand Down Expand Up @@ -114,9 +114,9 @@ class ResendTransactionMutationTest < ActiveSupport::TestCase
}

tx_result = DaoServerSchema.execute(
QUERY,
context: { current_user: user },
variables: attrs
QUERY,
context: { current_user: user },
variables: attrs
)

data = tx_result['data']['watchTransaction']['watchedTransaction']
Expand Down Expand Up @@ -148,9 +148,9 @@ class ResendTransactionMutationTest < ActiveSupport::TestCase
attrs['transactionObject'] = JSON.generate(transaction_object)

invalid_nonce_result = DaoServerSchema.execute(
QUERY2,
context: { current_user: user },
variables: attrs
QUERY2,
context: { current_user: user },
variables: attrs
)

assert_not_empty invalid_nonce_result['data']['resendTransaction']['errors'],
Expand Down

0 comments on commit 5b144d3

Please sign in to comment.