range updated for contracts

pull/5370/head
aniket-engg 4 years ago
parent 21a208e6f0
commit eda4c5be2a
  1. 8
      apps/remix-ide-e2e/src/examples/example-contracts.ts
  2. 4
      apps/remix-ide-e2e/src/tests/debugger.test.ts
  3. 2
      apps/remix-ide-e2e/src/tests/staticAnalysis.test.ts
  4. 4
      apps/remix-ide-e2e/src/tests/usingWebWorker.test.ts
  5. 8
      apps/remix-ide/src/app/editor/example-contracts.js

@ -1,6 +1,6 @@
'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 {
} }
}` }`
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 {
} }
}` }`
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 {
} }
` `
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 = [
{ {
'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 = [
Project[] public projects; Project[] public projects;
constructor() { constructor() public {
} }

@ -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'
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 {}
}` }`
}} }}
] ]

@ -1,6 +1,6 @@
'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 {
} }
}` }`
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 {
} }
}` }`
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 {
} }
` `
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";

Loading…
Cancel
Save