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
28e8c1f8
Commit
28e8c1f8
authored
Mar 24, 2020
by
aniket-engg
Committed by
Aniket
Mar 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounts count increased to 10
parent
37b83eaf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
accounts.js
remix-simulator/src/methods/accounts.js
+12
-1
sender_and_value_test.sol
remix-tests/tests/various_sender/sender_and_value_test.sol
+4
-4
No files found.
remix-simulator/src/methods/accounts.js
View file @
28e8c1f8
...
...
@@ -7,7 +7,18 @@ const Accounts = function (executionContext) {
this
.
web3
=
new
Web3
()
this
.
executionContext
=
executionContext
// TODO: make it random and/or use remix-libs
this
.
accountsList
=
[
this
.
web3
.
eth
.
accounts
.
create
([
'abcd'
]),
this
.
web3
.
eth
.
accounts
.
create
([
'ef12'
]),
this
.
web3
.
eth
.
accounts
.
create
([
'ef34'
])]
this
.
accountsList
=
[
this
.
web3
.
eth
.
accounts
.
create
([
'abcd'
]),
this
.
web3
.
eth
.
accounts
.
create
([
'ef12'
]),
this
.
web3
.
eth
.
accounts
.
create
([
'ef34'
]),
this
.
web3
.
eth
.
accounts
.
create
([
'ab12'
]),
this
.
web3
.
eth
.
accounts
.
create
([
'ab34'
]),
this
.
web3
.
eth
.
accounts
.
create
([
'cd12'
]),
this
.
web3
.
eth
.
accounts
.
create
([
'cd34'
]),
this
.
web3
.
eth
.
accounts
.
create
([
'bcde'
]),
this
.
web3
.
eth
.
accounts
.
create
([
'cdef'
]),
this
.
web3
.
eth
.
accounts
.
create
([
'1234'
])
]
this
.
accounts
=
{}
this
.
accountsKeys
=
{}
...
...
remix-tests/tests/various_sender/sender_and_value_test.sol
View file @
28e8c1f8
...
...
@@ -9,11 +9,11 @@ contract SenderAndValueTest {
Assert.equal(msg.sender, TestsAccounts.getAccount(1), "wrong sender in checkSenderIs1");
}
/// #sender: account-
0
/// #sender: account-
9
/// #value: 10
function checkSenderIs
0
AndValueis10 () public payable{
Assert.equal(msg.sender, TestsAccounts.getAccount(
0), "wrong sender in checkSenderIs0
AndValueis10");
Assert.equal(msg.value, 10, "wrong value in checkSenderIs
0
AndValueis10");
function checkSenderIs
9
AndValueis10 () public payable{
Assert.equal(msg.sender, TestsAccounts.getAccount(
9), "wrong sender in checkSenderIs9
AndValueis10");
Assert.equal(msg.value, 10, "wrong value in checkSenderIs
9
AndValueis10");
}
/// #value: 100
...
...
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