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
7377737b
Unverified
Commit
7377737b
authored
Jun 17, 2019
by
yann300
Committed by
GitHub
Jun 17, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1219 from ethereum/yann300-patch-15
Default abi if compiled with yul
parents
7bf65ad2
f314272a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
compiler.js
remix-solidity/src/compiler/compiler.js
+11
-1
No files found.
remix-solidity/src/compiler/compiler.js
View file @
7377737b
...
...
@@ -370,9 +370,19 @@ function Compiler (handleImportCall) {
}
return
version
}
function
updateInterface
(
data
)
{
txHelper
.
visitContracts
(
data
.
contracts
,
(
contract
)
=>
{
if
(
!
contract
.
object
.
abi
)
contract
.
object
.
abi
=
[]
if
(
language
===
'Yul'
&&
contract
.
object
.
abi
.
length
===
0
)
{
// yul compiler does not return any abi,
// we default to accept the fallback function (which expect raw data as argument).
contract
.
object
.
abi
.
push
({
'payable'
:
true
,
'stateMutability'
:
'payable'
,
'type'
:
'fallback'
})
}
data
.
contracts
[
contract
.
file
][
contract
.
name
].
abi
=
solcABI
.
update
(
truncateVersion
(
currentVersion
),
contract
.
object
.
abi
)
})
return
data
...
...
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