Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
24bfa5a6
Unverified
Commit
24bfa5a6
authored
Aug 14, 2019
by
yann300
Committed by
GitHub
Aug 14, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1259 from ethereum/addedPayableToABI
added copy of payable and stateMutability to the constructor ABI
parents
51f12064
99317238
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
txHelper.js
remix-lib/src/execution/txHelper.js
+3
-1
No files found.
remix-lib/src/execution/txHelper.js
View file @
24bfa5a6
...
...
@@ -56,7 +56,7 @@ module.exports = {
},
getConstructorInterface
:
function
(
abi
)
{
var
funABI
=
{
'name'
:
''
,
'inputs'
:
[],
'type'
:
'constructor'
,
'outputs'
:
[]
}
var
funABI
=
{
'name'
:
''
,
'inputs'
:
[],
'type'
:
'constructor'
,
'
payable'
:
'false'
,
'
outputs'
:
[]
}
if
(
typeof
abi
===
'string'
)
{
try
{
abi
=
JSON
.
parse
(
abi
)
...
...
@@ -69,6 +69,8 @@ module.exports = {
for
(
var
i
=
0
;
i
<
abi
.
length
;
i
++
)
{
if
(
abi
[
i
].
type
===
'constructor'
)
{
funABI
.
inputs
=
abi
[
i
].
inputs
||
[]
funABI
.
payable
=
abi
[
i
].
payable
funABI
.
stateMutability
=
abi
[
i
].
stateMutability
break
}
}
...
...
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