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
b78379d0
Commit
b78379d0
authored
Oct 21, 2020
by
aniket-engg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
example contracts updated
parent
aa46f59e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
example-contracts.js
apps/remix-ide/src/app/editor/example-contracts.js
+6
-6
No files found.
apps/remix-ide/src/app/editor/example-contracts.js
View file @
b78379d0
'use strict'
'use strict'
const
storage
=
`pragma solidity >=0.4.22 <0.
7
.0;
const
storage
=
`pragma solidity >=0.4.22 <0.
8
.0;
/**
/**
* @title Storage
* @title Storage
...
@@ -27,7 +27,7 @@ contract Storage {
...
@@ -27,7 +27,7 @@ contract Storage {
}
}
}`
}`
const
owner
=
`pragma solidity >=0.4.22 <0.
7
.0;
const
owner
=
`pragma solidity >=0.4.22 <0.
8
.0;
/**
/**
* @title Owner
* @title Owner
...
@@ -54,7 +54,7 @@ contract Owner {
...
@@ -54,7 +54,7 @@ contract Owner {
/**
/**
* @dev Set contract deployer as owner
* @dev Set contract deployer as owner
*/
*/
constructor()
public
{
constructor() {
owner = msg.sender; // 'msg.sender' is sender of current call, contract deployer for a constructor
owner = msg.sender; // 'msg.sender' is sender of current call, contract deployer for a constructor
emit OwnerSet(address(0), owner);
emit OwnerSet(address(0), owner);
}
}
...
@@ -77,7 +77,7 @@ contract Owner {
...
@@ -77,7 +77,7 @@ contract Owner {
}
}
}`
}`
const
ballot
=
`pragma solidity >=0.4.22 <0.
7
.0;
const
ballot
=
`pragma solidity >=0.4.22 <0.
8
.0;
/**
/**
* @title Ballot
* @title Ballot
...
@@ -109,7 +109,7 @@ contract Ballot {
...
@@ -109,7 +109,7 @@ contract Ballot {
* @dev Create a new ballot to choose one of 'proposalNames'.
* @dev Create a new ballot to choose one of 'proposalNames'.
* @param proposalNames names of proposals
* @param proposalNames names of proposals
*/
*/
constructor(bytes32[] memory proposalNames)
public
{
constructor(bytes32[] memory proposalNames) {
chairperson = msg.sender;
chairperson = msg.sender;
voters[chairperson].weight = 1;
voters[chairperson].weight = 1;
...
@@ -215,7 +215,7 @@ contract Ballot {
...
@@ -215,7 +215,7 @@ contract Ballot {
}
}
`
`
var
ballotTest
=
`pragma solidity >=0.4.22 <0.
7
.0;
var
ballotTest
=
`pragma solidity >=0.4.22 <0.
8
.0;
import "remix_tests.sol"; // this import is automatically injected by Remix.
import "remix_tests.sol"; // this import is automatically injected by Remix.
import "../3_Ballot.sol";
import "../3_Ballot.sol";
...
...
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