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
d60ee0aa
Commit
d60ee0aa
authored
Apr 25, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoded values using ethers.js are a bit different
parent
09a4147f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
12 deletions
+24
-12
compiling.js
test-browser/tests/compiling.js
+24
-12
No files found.
test-browser/tests/compiling.js
View file @
d60ee0aa
...
@@ -78,7 +78,7 @@ function testReturnValues (browser, callback) {
...
@@ -78,7 +78,7 @@ function testReturnValues (browser, callback) {
"0": "bool: _b true",
"0": "bool: _b true",
"1": "uint256: _u 345",
"1": "uint256: _u 345",
"2": "int256: _i -345",
"2": "int256: _i -345",
"3": "address: _a 0x
ca35b7d915458ef540ade6068dfe2f44e
8fa733c"
"3": "address: _a 0x
CA35b7d915458EF540aDe6068dFe2F44E
8fa733c"
}`
)
}`
)
.
pause
(
500
)
.
pause
(
500
)
.
testFunction
(
'retunValues2 - transact (not payable)'
,
.
testFunction
(
'retunValues2 - transact (not payable)'
,
...
@@ -98,7 +98,7 @@ function testReturnValues (browser, callback) {
...
@@ -98,7 +98,7 @@ function testReturnValues (browser, callback) {
'0x7faab07aeaafc8afe6bf283bb83be70c000dff381dec04e779354e354da14aff'
,
'0x7faab07aeaafc8afe6bf283bb83be70c000dff381dec04e779354e354da14aff'
,
'[vm]
\
nfrom:0xca3...a733c
\
nto:testReturnValues.retunValues3() 0x5e7...26e9f
\
nvalue:0 wei
\
ndata:0x033...e0a7d
\
nlogs:0
\
nhash:0x7fa...14aff'
,
null
,
`{
'[vm]
\
nfrom:0xca3...a733c
\
nto:testReturnValues.retunValues3() 0x5e7...26e9f
\
nvalue:0 wei
\
ndata:0x033...e0a7d
\
nlogs:0
\
nhash:0x7fa...14aff'
,
null
,
`{
"0": "uint8: _en 2",
"0": "uint8: _en 2",
"1": "int256[5][]: _a1 1,-45,-78,56,60,
-1,42,334,-45455,-446,
1,10,-5435,45,-7"
"1": "int256[5][]: _a1 1,-45,-78,56,60,
-1,42,334,-45455,-446,
1,10,-5435,45,-7"
}`
).
click
(
'i[class^="clearinstance"]'
).
perform
(()
=>
{
callback
(
null
,
browser
)
})
}`
).
click
(
'i[class^="clearinstance"]'
).
perform
(()
=>
{
callback
(
null
,
browser
)
})
})
})
}
}
...
@@ -121,19 +121,31 @@ function testInputValues (browser, callback) {
...
@@ -121,19 +121,31 @@ function testInputValues (browser, callback) {
`[vm]\nfrom:0xca3...a733c\nto:test.inputValue2(uint256[3],bytes8[4]) 0x8c1...401f5\nvalue:0 wei\ndata:0x1b7...00000\nlogs:1\nhash:0x487...6ef7f`
,
`[vm]\nfrom:0xca3...a733c\nto:test.inputValue2(uint256[3],bytes8[4]) 0x8c1...401f5\nvalue:0 wei\ndata:0x1b7...00000\nlogs:1\nhash:0x487...6ef7f`
,
{
types
:
'uint256[3] _n, bytes8[4] _b8'
,
values
:
'[1,2,3], ["0x1234", "0x1234","0x1234","0x1234"]'
},
{
types
:
'uint256[3] _n, bytes8[4] _b8'
,
values
:
'[1,2,3], ["0x1234", "0x1234","0x1234","0x1234"]'
},
`{
`{
"0": "uint256[3]: _nret 1,
2,
3",
"0": "uint256[3]: _nret 1,
2,
3",
"1": "bytes8[4]: _b8ret 0x1234000000000000,
0x1234000000000000, 0x1234000000000000,
0x1234000000000000"
"1": "bytes8[4]: _b8ret 0x1234000000000000,
0x1234000000000000,0x1234000000000000,
0x1234000000000000"
}`
,
`[
}`
,
`
"
[
{
{
"topic": "d30981760edbf605bda8689e945f622877f230c9a77cbfbd448aa4b7d8ac6e7f",
"topic": "d30981760edbf605bda8689e945f622877f230c9a77cbfbd448aa4b7d8ac6e7f",
"event": "event1",
"event": "event1",
"args": [
"args": {
"-123",
"0": "-123",
"000000000000000000000000000000000000000000000000000000000000007b",
"1": "123",
"9c22ff5f21f0b81b113e63f7db6da94fedef11b2119b4088b89664fb9a3cb658",
"2": {
"0x00001234",
"indexed": true,
"test _ test _ test _ test test _ test test _ test test _ test test _ test test _ test test _ test "
"hash": "0x9c22ff5f21f0b81b113e63f7db6da94fedef11b2119b4088b89664fb9a3cb658"
]
},
"3": "0x00001234",
"4": "test _ test _ test _ test test _ test test _ test test _ test test _ test test _ test test _ test ",
"_i": "-123",
"_u": "123",
"_str": {
"indexed": true,
"hash": "0x9c22ff5f21f0b81b113e63f7db6da94fedef11b2119b4088b89664fb9a3cb658"
},
"_b": "0x00001234",
"_notIndexed": "test _ test _ test _ test test _ test test _ test test _ test test _ test test _ test test _ test ",
"length": 5
}
}
}
]`
)
]`
)
.
click
(
'i[class^="clearinstance"]'
).
perform
(()
=>
{
callback
(
null
,
browser
)
})
.
click
(
'i[class^="clearinstance"]'
).
perform
(()
=>
{
callback
(
null
,
browser
)
})
...
...
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