Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
geraldb committed Jan 9, 2023
1 parent d56ec52 commit a5f235c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
1 change: 0 additions & 1 deletion abiparser/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Hoe.spec 'abiparser' do
['cocos'],
['bytes'],
['digest-lite'],
['abicoder'],
]

self.licenses = ['Public Domain']
Expand Down
1 change: 0 additions & 1 deletion abiparser/lib/abiparser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def sig( bin )
end


require 'abicoder'


## our own code
Expand Down
5 changes: 3 additions & 2 deletions abiparser/lib/abiparser/constructor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def self.parse( o )
end


attr_reader :inputs, :input_types
attr_reader :inputs
## :input_types

def initialize( inputs: [],
payable: false )
Expand All @@ -57,7 +58,7 @@ def initialize( inputs: [],
## parse inputs into types
## note: use "calculated" sig(nature) and NOT the type
## (differs for tuples, that is, types with components !!!)
@input_types = @inputs.map {|param| Type.parse( param.sig ) }
## @input_types = @inputs.map {|param| Type.parse( param.sig ) }
end


Expand Down
20 changes: 10 additions & 10 deletions abiparser/lib/abiparser/function.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def self.parse( o )


attr_reader :name,
:inputs, :outputs,
:input_types, :output_types
:inputs, :outputs
## :input_types, :output_types

def initialize( name,
inputs: [],
Expand All @@ -73,14 +73,14 @@ def initialize( name,
## parse inputs & outputs into types
## note: use "calculated" sig(nature) and NOT the type
## (differs for tuples, that is, types with components !!!)
@input_types = @inputs.map do |param|
Type.parse( param.sig )
end
@output_types = @outputs.map do |param|
## pp param
## puts "sig: #{param.sig}"
Type.parse( param.sig )
end
## @input_types = @inputs.map do |param|
## Type.parse( param.sig )
## end
## @output_types = @outputs.map do |param|
## ## pp param
## ## puts "sig: #{param.sig}"
## Type.parse( param.sig )
## end
end


Expand Down
2 changes: 1 addition & 1 deletion abiparser/lib/abiparser/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module ABIParser
MAJOR = 0
MINOR = 1
PATCH = 1
PATCH = 2
VERSION = [MAJOR,MINOR,PATCH].join('.')

def self.version
Expand Down

0 comments on commit a5f235c

Please sign in to comment.