Skip to content

Commit

Permalink
(fix) switch nonces to ms, bump version to 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
f3rno committed Nov 26, 2018
1 parent 838534e commit 1b13eda
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bitfinex-rb.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

Gem::Specification.new do |spec|
spec.name = 'bitfinex-rb'
spec.version = '1.0.1'
spec.version = '1.0.2'
spec.authors = ['Bitfinex']
spec.email = ['developers@bitfinex.com']
spec.summary = %q{Bitfinex API Wrapper}
Expand Down
2 changes: 1 addition & 1 deletion lib/rest/rest_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def build_payload(url, params = {}, nonce)
end

def new_nonce
Time.now.to_i.to_s
(Time.now.to_f * 1000).floor.to_s
end

def sign(payload)
Expand Down
2 changes: 1 addition & 1 deletion lib/ws/ws2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ def auth! (calc = 0, dms = 0)
end

def new_nonce # :nodoc:
Time.now.to_i.to_s
(Time.now.to_f * 1000).floor.to_s
end

def sign (payload) # :nodoc:
Expand Down

0 comments on commit 1b13eda

Please sign in to comment.