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
ac17d537
Commit
ac17d537
authored
Dec 20, 2019
by
aniket-engg
Committed by
Aniket
Dec 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web3 extend fix
parent
d8abda98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
init.js
remix-lib/src/init.js
+5
-5
No files found.
remix-lib/src/init.js
View file @
ac17d537
...
...
@@ -26,13 +26,13 @@ module.exports = {
},
extend
:
function
(
web3
)
{
if
(
!
web3
.
_
extend
)
{
if
(
!
web3
.
extend
)
{
return
}
// DEBUG
var
methods
=
[]
if
(
!
(
web3
.
debug
&&
web3
.
debug
.
preimage
))
{
methods
.
push
(
new
web3
.
_
extend
.
Method
({
methods
.
push
(
new
web3
.
extend
.
Method
({
name
:
'preimage'
,
call
:
'debug_preimage'
,
inputFormatter
:
[
null
],
...
...
@@ -41,7 +41,7 @@ module.exports = {
}
if
(
!
(
web3
.
debug
&&
web3
.
debug
.
traceTransaction
))
{
methods
.
push
(
new
web3
.
_
extend
.
Method
({
methods
.
push
(
new
web3
.
extend
.
Method
({
name
:
'traceTransaction'
,
call
:
'debug_traceTransaction'
,
inputFormatter
:
[
null
,
null
],
...
...
@@ -50,7 +50,7 @@ module.exports = {
}
if
(
!
(
web3
.
debug
&&
web3
.
debug
.
storageRangeAt
))
{
methods
.
push
(
new
web3
.
_
extend
.
Method
({
methods
.
push
(
new
web3
.
extend
.
Method
({
name
:
'storageRangeAt'
,
call
:
'debug_storageRangeAt'
,
inputFormatter
:
[
null
,
null
,
null
,
null
,
null
],
...
...
@@ -58,7 +58,7 @@ module.exports = {
}))
}
if
(
methods
.
length
>
0
)
{
web3
.
_
extend
({
web3
.
extend
({
property
:
'debug'
,
methods
:
methods
,
properties
:
[]
...
...
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