Skip to content

Commit

Permalink
Merge pull request #147 from ccozkan/master
Browse files Browse the repository at this point in the history
Fix allowance of passing alternate transaction nonce value on contract
  • Loading branch information
kurotaky authored Mar 4, 2021
2 parents 4b696ee + 91be7c2 commit bd9a933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ethereum/contract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def send_transaction(tx_args)

def send_raw_transaction(payload, to = nil)
Eth.configure { |c| c.chain_id = @client.net_version["result"].to_i }
@nonce = @client.get_nonce(key.address)
@nonce ||= @client.get_nonce(key.address)
args = {
from: key.address,
value: 0,
Expand Down

0 comments on commit bd9a933

Please sign in to comment.