Commit 5cd9df21 authored by aniket-engg's avatar aniket-engg

range updated for contracts

parent 0a78ff25
'use strict' 'use strict'
const storage = `pragma solidity >=0.4.22 <0.8.0; const storage = `pragma solidity >=0.7.0 <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.8.0; const owner = `pragma solidity >=0.7.0 <0.8.0;
/** /**
* @title Owner * @title Owner
...@@ -77,7 +77,7 @@ contract Owner { ...@@ -77,7 +77,7 @@ contract Owner {
} }
}` }`
const ballot = `pragma solidity >=0.4.22 <0.8.0; const ballot = `pragma solidity >=0.7.0 <0.8.0;
/** /**
* @title Ballot * @title Ballot
...@@ -215,7 +215,7 @@ contract Ballot { ...@@ -215,7 +215,7 @@ contract Ballot {
} }
` `
const ballot_0_4_11 = `pragma solidity >=0.4.10 <0.8.0; const ballot_0_4_11 = `pragma solidity >=0.4.10 <0.7.0;
contract Ballot { contract Ballot {
struct Voter { struct Voter {
......
...@@ -178,7 +178,7 @@ const sources = [ ...@@ -178,7 +178,7 @@ const sources = [
{ {
'browser/blah.sol': { 'browser/blah.sol': {
content: ` content: `
pragma solidity >=0.4.22 <0.8.0; pragma solidity >=0.4.22 <0.7.0;
contract Kickstarter { contract Kickstarter {
...@@ -193,7 +193,7 @@ const sources = [ ...@@ -193,7 +193,7 @@ const sources = [
Project[] public projects; Project[] public projects;
constructor() { constructor() public {
} }
......
...@@ -6,7 +6,7 @@ import sauce from './sauce' ...@@ -6,7 +6,7 @@ import sauce from './sauce'
const sources = [ const sources = [
{ {
'browser/Untitled.sol': {content: ` 'browser/Untitled.sol': {content: `
pragma solidity >=0.4.22 <0.8.0; pragma solidity >=0.4.22 <0.7.0;
contract test1 { address test = tx.origin; } contract test1 { address test = tx.origin; }
contract test2 {} contract test2 {}
contract TooMuchGas { contract TooMuchGas {
......
...@@ -5,14 +5,14 @@ import sauce from './sauce' ...@@ -5,14 +5,14 @@ import sauce from './sauce'
const sources = [ const sources = [
{'browser/basic.sol': { content: {'browser/basic.sol': { content:
`pragma solidity >=0.2.0 <0.8.0; `pragma solidity >=0.2.0 <0.7.0;
/** /**
* @title Basic contract * @title Basic contract
*/ */
contract Basic { contract Basic {
uint someVar; uint someVar;
constructor() {} constructor() public {}
}` }`
}} }}
] ]
......
'use strict' 'use strict'
const storage = `pragma solidity >=0.4.22 <0.8.0; const storage = `pragma solidity >=0.7.0 <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.8.0; const owner = `pragma solidity >=0.7.0 <0.8.0;
/** /**
* @title Owner * @title Owner
...@@ -77,7 +77,7 @@ contract Owner { ...@@ -77,7 +77,7 @@ contract Owner {
} }
}` }`
const ballot = `pragma solidity >=0.4.22 <0.8.0; const ballot = `pragma solidity >=0.7.0 <0.8.0;
/** /**
* @title Ballot * @title Ballot
...@@ -215,7 +215,7 @@ contract Ballot { ...@@ -215,7 +215,7 @@ contract Ballot {
} }
` `
var ballotTest = `pragma solidity >=0.4.22 <0.8.0; var ballotTest = `pragma solidity >=0.7.0 <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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment