File tree Expand file tree Collapse file tree 4 files changed +27
-2
lines changed Expand file tree Collapse file tree 4 files changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
+ ## [ 1.7.1] - 2021-07-16
9
+
10
+ ### Added
11
+
12
+ - Add support for Ethereum estimates
8
13
## [ 1.7.0] - 2021-07-14
9
14
10
15
### Changed
Original file line number Diff line number Diff line change 1
1
PATH
2
2
remote: .
3
3
specs:
4
- patch_ruby (1.7.0 )
4
+ patch_ruby (1.7.1 )
5
5
json (~> 2.1 , >= 2.1.0 )
6
6
typhoeus (~> 1.0 , >= 1.0.1 )
7
7
Original file line number Diff line number Diff line change 11
11
=end
12
12
13
13
module Patch
14
- VERSION = '1.7.0 '
14
+ VERSION = '1.7.1 '
15
15
end
Original file line number Diff line number Diff line change 99
99
expect ( bitcoin_estimate . data . type ) . to eq 'bitcoin'
100
100
expect ( bitcoin_estimate . data . mass_g ) . to be < bitcoin_estimate_2 . data . mass_g
101
101
end
102
+
103
+ it 'supports creating ethereum estimates with a gas amount' do
104
+ ethereum_estimate = Patch ::Estimate . create_ethereum_estimate (
105
+ gas_used : 100
106
+ )
107
+
108
+ ethereum_estimate_2 = Patch ::Estimate . create_ethereum_estimate (
109
+ gas_used : 1000
110
+ )
111
+
112
+ expect ( ethereum_estimate . data . type ) . to eq 'ethereum'
113
+ expect ( ethereum_estimate . data . mass_g ) . to be < ethereum_estimate_2 . data . mass_g
114
+ end
115
+
116
+ it 'supports creating ethereum estimates with partial information' do
117
+ ethereum_estimate = Patch ::Estimate . create_ethereum_estimate ( { create_order : false } )
118
+
119
+ expect ( ethereum_estimate . data . type ) . to eq 'ethereum'
120
+ expect ( ethereum_estimate . data . mass_g ) . to be >= 2_000
121
+ end
102
122
end
You can’t perform that action at this time.
0 commit comments