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
8301c88c
Commit
8301c88c
authored
Jan 09, 2020
by
aniket-engg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
linting fix & comments
parent
90220b8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
txListener.js
remix-lib/src/execution/txListener.js
+8
-8
txFormat.js
remix-lib/test/txFormat.js
+2
-2
No files found.
remix-lib/src/execution/txListener.js
View file @
8301c88c
...
@@ -292,7 +292,7 @@ class TxListener {
...
@@ -292,7 +292,7 @@ class TxListener {
}
}
}
}
// receive function
// receive function
if
(
!
inputData
&&
txHelper
.
getReceiveInterface
(
abi
))
{
if
(
!
inputData
&&
txHelper
.
getReceiveInterface
(
abi
))
{
this
.
_resolvedTransactions
[
tx
.
hash
]
=
{
this
.
_resolvedTransactions
[
tx
.
hash
]
=
{
contractName
:
contractName
,
contractName
:
contractName
,
to
:
tx
.
to
,
to
:
tx
.
to
,
...
@@ -300,13 +300,13 @@ class TxListener {
...
@@ -300,13 +300,13 @@ class TxListener {
params
:
null
params
:
null
}
}
}
else
{
}
else
{
// fallback function
// fallback function
this
.
_resolvedTransactions
[
tx
.
hash
]
=
{
this
.
_resolvedTransactions
[
tx
.
hash
]
=
{
contractName
:
contractName
,
contractName
:
contractName
,
to
:
tx
.
to
,
to
:
tx
.
to
,
fn
:
'(fallback)'
,
fn
:
'(fallback)'
,
params
:
null
params
:
null
}
}
}
}
}
else
{
}
else
{
const
bytecode
=
contract
.
object
.
evm
.
bytecode
.
object
const
bytecode
=
contract
.
object
.
evm
.
bytecode
.
object
...
...
remix-lib/test/txFormat.js
View file @
8301c88c
...
@@ -249,9 +249,9 @@ tape('test fallback & receive function', function (t) {
...
@@ -249,9 +249,9 @@ tape('test fallback & receive function', function (t) {
let
output
=
compiler
.
compile
(
compilerInput
(
fallbackAndReceiveFunction
))
let
output
=
compiler
.
compile
(
compilerInput
(
fallbackAndReceiveFunction
))
output
=
JSON
.
parse
(
output
)
output
=
JSON
.
parse
(
output
)
const
contract
=
output
.
contracts
[
'test.sol'
][
'fallbackAndReceiveFunctionContract'
]
const
contract
=
output
.
contracts
[
'test.sol'
][
'fallbackAndReceiveFunctionContract'
]
st
.
equal
(
txHelper
.
encodeFunctionId
(
contract
.
abi
[
2
]),
'0x'
)
st
.
equal
(
txHelper
.
encodeFunctionId
(
contract
.
abi
[
2
]),
'0x'
)
// for receive function
st
.
equal
(
txHelper
.
encodeFunctionId
(
contract
.
abi
[
1
]),
'0x805da4ad'
)
st
.
equal
(
txHelper
.
encodeFunctionId
(
contract
.
abi
[
1
]),
'0x805da4ad'
)
st
.
equal
(
txHelper
.
encodeFunctionId
(
contract
.
abi
[
0
]),
'0x'
)
st
.
equal
(
txHelper
.
encodeFunctionId
(
contract
.
abi
[
0
]),
'0x'
)
// for fallback function
})
})
})
})
...
...
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