File tree Expand file tree Collapse file tree 5 files changed +14
-15
lines changed
Expand file tree Collapse file tree 5 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ Hoe.spec 'abiparser' do
2222 [ 'cocos' ] ,
2323 [ 'bytes' ] ,
2424 [ 'digest-lite' ] ,
25- [ 'abicoder' ] ,
2625 ]
2726
2827 self . licenses = [ 'Public Domain' ]
Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ def sig( bin )
3636end
3737
3838
39- require 'abicoder'
4039
4140
4241## our own code
Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ def self.parse( o )
4747 end
4848
4949
50- attr_reader :inputs , :input_types
50+ attr_reader :inputs
51+ ## :input_types
5152
5253 def initialize ( inputs : [ ] ,
5354 payable : false )
@@ -57,7 +58,7 @@ def initialize( inputs: [],
5758 ## parse inputs into types
5859 ## note: use "calculated" sig(nature) and NOT the type
5960 ## (differs for tuples, that is, types with components !!!)
60- @input_types = @inputs . map { |param | Type . parse ( param . sig ) }
61+ ## @input_types = @inputs.map {|param| Type.parse( param.sig ) }
6162 end
6263
6364
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ def self.parse( o )
5454
5555
5656 attr_reader :name ,
57- :inputs , :outputs ,
58- :input_types , :output_types
57+ :inputs , :outputs
58+ ## :input_types, :output_types
5959
6060 def initialize ( name ,
6161 inputs : [ ] ,
@@ -73,14 +73,14 @@ def initialize( name,
7373 ## parse inputs & outputs into types
7474 ## note: use "calculated" sig(nature) and NOT the type
7575 ## (differs for tuples, that is, types with components !!!)
76- @input_types = @inputs . map do |param |
77- Type . parse ( param . sig )
78- end
79- @output_types = @outputs . map do |param |
80- ## pp param
81- ## puts "sig: #{param.sig}"
82- Type . parse ( param . sig )
83- end
76+ ## @input_types = @inputs.map do |param|
77+ ## Type.parse( param.sig )
78+ ## end
79+ ## @output_types = @outputs.map do |param|
80+ ## ## pp param
81+ ## ## puts "sig: #{param.sig}"
82+ ## Type.parse( param.sig )
83+ ## end
8484 end
8585
8686
Original file line number Diff line number Diff line change 22module ABIParser
33 MAJOR = 0
44 MINOR = 1
5- PATCH = 1
5+ PATCH = 2
66 VERSION = [ MAJOR , MINOR , PATCH ] . join ( '.' )
77
88 def self . version
You can’t perform that action at this time.
0 commit comments