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
ce9e48f8
Commit
ce9e48f8
authored
May 12, 2020
by
yann300
Committed by
Aniket
May 27, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return a default source map if deployedBytecode not defined (Yul contract)
parent
3d2b3ecd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
sourceLocationTracker.js
remix-lib/src/sourceLocationTracker.js
+6
-2
No files found.
remix-lib/src/sourceLocationTracker.js
View file @
ce9e48f8
...
...
@@ -65,9 +65,13 @@ function getSourceMap (address, code, contracts) {
let
bytes
for
(
let
file
in
contracts
)
{
for
(
let
contract
in
contracts
[
file
])
{
bytes
=
isCreation
?
contracts
[
file
][
contract
].
evm
.
bytecode
.
object
:
contracts
[
file
][
contract
].
evm
.
deployedBytecode
.
object
const
bytecode
=
contracts
[
file
][
contract
].
evm
.
bytecode
const
deployedBytecode
=
contracts
[
file
][
contract
].
evm
.
deployedBytecode
if
(
!
deployedBytecode
)
return
bytecode
.
sourceMap
bytes
=
isCreation
?
bytecode
.
object
:
deployedBytecode
.
object
if
(
util
.
compareByteCode
(
code
,
'0x'
+
bytes
))
{
return
isCreation
?
contracts
[
file
][
contract
].
evm
.
bytecode
.
sourceMap
:
contracts
[
file
][
contract
].
evm
.
deployedBytecode
.
sourceMap
return
isCreation
?
bytecode
.
sourceMap
:
deployedBytecode
.
sourceMap
}
}
}
...
...
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