Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
5429dc75
Commit
5429dc75
authored
May 27, 2019
by
Vitaly Bogdanov
Committed by
Guillaume Ballet
May 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/abigen: allow using `abigen --pkg` flag with standard input (#19207)
parent
c4de228e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
main.go
cmd/abigen/main.go
+3
-8
No files found.
cmd/abigen/main.go
View file @
5429dc75
...
...
@@ -81,7 +81,7 @@ func main() {
bins
[]
string
types
[]
string
)
if
*
solFlag
!=
""
||
*
vyFlag
!=
""
||
(
*
abiFlag
==
"-"
&&
*
pkgFlag
==
""
)
{
if
*
solFlag
!=
""
||
*
vyFlag
!=
""
||
*
abiFlag
==
"-"
{
// Generate the list of types to exclude from binding
exclude
:=
make
(
map
[
string
]
bool
)
for
_
,
kind
:=
range
strings
.
Split
(
*
excFlag
,
","
)
{
...
...
@@ -129,13 +129,8 @@ func main() {
}
}
else
{
// Otherwise load up the ABI, optional bytecode and type name from the parameters
var
abi
[]
byte
var
err
error
if
*
abiFlag
==
"-"
{
abi
,
err
=
ioutil
.
ReadAll
(
os
.
Stdin
)
}
else
{
abi
,
err
=
ioutil
.
ReadFile
(
*
abiFlag
)
}
abi
,
err
:=
ioutil
.
ReadFile
(
*
abiFlag
)
if
err
!=
nil
{
fmt
.
Printf
(
"Failed to read input ABI: %v
\n
"
,
err
)
os
.
Exit
(
-
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment