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
a8cccdd0
Commit
a8cccdd0
authored
Oct 04, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove console.log
parent
fb8393b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
12 deletions
+0
-12
debugger.ts
libs/remix-debug/test/debugger.ts
+0
-1
mapping.ts
libs/remix-debug/test/decoder/stateTests/mapping.ts
+0
-3
vmCall.ts
libs/remix-debug/test/vmCall.ts
+0
-8
No files found.
libs/remix-debug/test/debugger.ts
View file @
a8cccdd0
...
...
@@ -263,7 +263,6 @@ function testDebugging (debugManager) {
debugManager
.
decodeLocalsAt
(
327
,
location
,
(
error
,
decodedlocals
)
=>
{
if
(
error
)
return
t
.
end
(
error
)
const
res
=
deepequal
(
decodedlocals
,
tested
)
console
.
log
(
res
)
t
.
ok
(
res
,
`test if locals does match. expected:
${
JSON
.
stringify
(
tested
)}
- current:
${
JSON
.
stringify
(
decodedlocals
)}
`
)
})
}
catch
(
error
)
{
...
...
libs/remix-debug/test/decoder/stateTests/mapping.ts
View file @
a8cccdd0
...
...
@@ -8,12 +8,10 @@ import { StorageViewer } from '../../../src/storage/storageViewer'
import
{
Address
,
bufferToHex
}
from
'ethereumjs-util'
module
.
exports
=
async
function
testMappingStorage
(
st
,
cb
)
{
console
.
log
(
'start testMappingStorage'
)
var
mappingStorage
=
require
(
'../contracts/mappingStorage'
)
var
privateKey
=
Buffer
.
from
(
'503f38a9c967ed597e47fe25643985f032b072db8075426a92110f82df48dfcb'
,
'hex'
)
var
output
=
compile
(
compilerInput
(
mappingStorage
.
contract
))
output
=
JSON
.
parse
(
output
);
console
.
log
(
'BYTECODE'
,
output
.
contracts
[
'test.sol'
][
'SimpleMappingState'
].
evm
.
bytecode
.
object
);
const
web3
=
await
(
vmCall
as
any
).
getWeb3
();
(
vmCall
as
any
).
sendTx
(
web3
,
{
nonce
:
0
,
privateKey
:
privateKey
},
null
,
0
,
output
.
contracts
[
'test.sol'
][
'SimpleMappingState'
].
evm
.
bytecode
.
object
,
function
(
error
,
hash
)
{
if
(
error
)
{
...
...
@@ -26,7 +24,6 @@ module.exports = async function testMappingStorage (st, cb) {
st
.
end
(
error
)
}
else
{
// const storage = await this.vm.stateManager.dumpStorage(data.to)
console
.
log
(
tx
);
// (vmCall as any).web3().eth.getCode(tx.contractAddress).then((code) => console.log('code:', code))
// (vmCall as any).web3().debug.traceTransaction(hash).then((code) => console.log('trace:', code))
testMapping
(
st
,
privateKey
,
tx
.
contractAddress
,
output
,
web3
,
cb
)
...
...
libs/remix-debug/test/vmCall.ts
View file @
a8cccdd0
...
...
@@ -24,13 +24,6 @@ async function getWeb3 () {
async
function
sendTx
(
web3
,
from
,
to
,
value
,
data
,
cb
)
{
try
{
cb
=
cb
||
(()
=>
{})
console
.
log
(
'TX'
,
{
from
:
utileth
.
Address
.
fromPrivateKey
(
from
.
privateKey
).
toString
(
'hex'
),
to
,
value
,
data
,
gas
:
7000000
})
const
receipt
=
await
web3
.
eth
.
sendTransaction
({
from
:
utileth
.
Address
.
fromPrivateKey
(
from
.
privateKey
).
toString
(
'hex'
),
to
,
...
...
@@ -38,7 +31,6 @@ async function sendTx (web3, from, to, value, data, cb) {
data
,
gas
:
7000000
})
console
.
log
(
'end tx'
)
cb
(
null
,
receipt
.
transactionHash
)
return
receipt
.
transactionHash
}
catch
(
e
)
{
...
...
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