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
983bee53
Commit
983bee53
authored
Oct 14, 2021
by
Aniket-Engg
Committed by
Aniket
Oct 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
web3 setup
parent
fea24632
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
debugger-api.ts
apps/debugger/src/app/debugger-api.ts
+8
-1
No files found.
apps/debugger/src/app/debugger-api.ts
View file @
983bee53
...
...
@@ -4,6 +4,9 @@ import { CompilationOutput, Sources } from '@remix-ui/debugger-ui'
import
type
{
CompilationResult
}
from
'@remix-project/remix-solidity-ts'
export
const
DebuggerApiMixin
=
(
Base
)
=>
class
extends
Base
{
initialWeb3
initDebuggerApi
()
{
this
.
debugHash
=
null
...
...
@@ -16,6 +19,8 @@ export const DebuggerApiMixin = (Base) => class extends Base {
}
}
this
.
_web3
=
new
Web3
(
this
.
web3Provider
)
// this._web3 can be overwritten and reset to initial value in 'debug' method
this
.
initialWeb3
=
this
.
_web3
remixDebug
.
init
.
extendWeb3
(
this
.
_web3
)
this
.
offsetToLineColumnConverter
=
{
...
...
@@ -123,7 +128,9 @@ export const DebuggerApiMixin = (Base) => class extends Base {
debug
(
hash
,
web3
?)
{
this
.
debugHash
=
hash
if
(
web3
)
remixDebug
.
init
.
extendWeb3
(
web3
)
if
(
web3
)
this
.
_web3
=
web3
else
this
.
_web3
=
this
.
initialWeb3
remixDebug
.
init
.
extendWeb3
(
this
.
_web3
)
if
(
this
.
onDebugRequestedListener
)
this
.
onDebugRequestedListener
(
hash
,
web3
)
}
...
...
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