Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nucleo
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blockchain
nucleo
Commits
433ab396
Commit
433ab396
authored
4 years ago
by
Robert Martin-Legene
Browse files
Options
Downloads
Patches
Plain Diff
scoping
parent
bde3e6ea
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/libbfa/__init__.py
+2
-1
2 additions, 1 deletion
bin/libbfa/__init__.py
with
2 additions
and
1 deletion
bin/libbfa/__init__.py
+
2
−
1
View file @
433ab396
...
...
@@ -333,6 +333,7 @@ class CompiledContract:
self
.
writetextfile
()
def
readtextfile
(
self
):
output
=
None
for
filename
in
(
'
{}.compiled.json
'
.
format
(
self
.
name
),
self
.
name
):
if
os
.
path
.
exists
(
filename
):
with
open
(
filename
,
'
rt
'
,
encoding
=
'
utf-8
'
)
as
infile
:
...
...
@@ -340,7 +341,7 @@ class CompiledContract:
break
if
output
is
None
:
print
(
"
File not found.
"
,
file
=
sys
.
stderr
)
raise
FileNotFound
raise
FileNotFound
Error
if
len
(
output
)
<
2
:
print
(
"
The JSON file is too small ({} bytes read from {}).
"
.
format
(
len
(
output
),
filename
),
file
=
sys
.
stderr
)
raise
NameError
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment