Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions apps/remix-ide/src/app/editor/example-contracts.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
'use strict'

const storage = `pragma solidity >=0.7.0 <0.8.0;
const storage = `// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
/**
* @title Storage
Expand All @@ -27,7 +29,9 @@ contract Storage {
}
}`

const owner = `pragma solidity >=0.7.0 <0.8.0;
const owner = `// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
/**
* @title Owner
Expand Down Expand Up @@ -77,7 +81,9 @@ contract Owner {
}
}`

const ballot = `pragma solidity >=0.7.0 <0.8.0;
const ballot = `// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
/**
* @title Ballot
Expand Down Expand Up @@ -215,7 +221,9 @@ contract Ballot {
}
`

var ballotTest = `pragma solidity >=0.7.0 <0.8.0;
var ballotTest = `// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.8.0;
import "remix_tests.sol"; // this import is automatically injected by Remix.
import "../3_Ballot.sol";
Expand Down
3 changes: 2 additions & 1 deletion libs/remix-tests/sol/tests.sol.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = `
module.exports = `// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.8.0;
library Assert {
Expand Down
5 changes: 4 additions & 1 deletion libs/remix-tests/sol/tests_accounts.sol.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = `
module.exports = `// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.4.22 <0.8.0;
library TestsAccounts {
function getAccount(uint index) public returns (address) {
>accounts<
Expand Down