From 709fcdfe019ba4d2d732715c8a65c23edd99d15d Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Thu, 29 Oct 2020 12:42:49 +0530 Subject: [PATCH 1/2] license added in example contracts --- apps/remix-ide/src/app/editor/example-contracts.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/remix-ide/src/app/editor/example-contracts.js b/apps/remix-ide/src/app/editor/example-contracts.js index bbf637f8e4..eecc40b68c 100644 --- a/apps/remix-ide/src/app/editor/example-contracts.js +++ b/apps/remix-ide/src/app/editor/example-contracts.js @@ -1,6 +1,7 @@ '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 @@ -27,7 +28,8 @@ 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 @@ -77,7 +79,8 @@ 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 @@ -215,7 +218,8 @@ 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"; From b5753ff5f2c1e16f0645fc91413a8792fcba3d39 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Thu, 29 Oct 2020 13:44:14 +0530 Subject: [PATCH 2/2] license added in tests libraries --- apps/remix-ide/src/app/editor/example-contracts.js | 4 ++++ libs/remix-tests/sol/tests.sol.ts | 3 ++- libs/remix-tests/sol/tests_accounts.sol.ts | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide/src/app/editor/example-contracts.js b/apps/remix-ide/src/app/editor/example-contracts.js index eecc40b68c..42fb7de360 100644 --- a/apps/remix-ide/src/app/editor/example-contracts.js +++ b/apps/remix-ide/src/app/editor/example-contracts.js @@ -1,6 +1,7 @@ 'use strict' const storage = `// SPDX-License-Identifier: GPL-3.0 + pragma solidity >=0.7.0 <0.8.0; /** @@ -29,6 +30,7 @@ contract Storage { }` const owner = `// SPDX-License-Identifier: GPL-3.0 + pragma solidity >=0.7.0 <0.8.0; /** @@ -80,6 +82,7 @@ contract Owner { }` const ballot = `// SPDX-License-Identifier: GPL-3.0 + pragma solidity >=0.7.0 <0.8.0; /** @@ -219,6 +222,7 @@ contract Ballot { ` 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"; diff --git a/libs/remix-tests/sol/tests.sol.ts b/libs/remix-tests/sol/tests.sol.ts index edbe332a3a..291705b9cc 100644 --- a/libs/remix-tests/sol/tests.sol.ts +++ b/libs/remix-tests/sol/tests.sol.ts @@ -1,4 +1,5 @@ -module.exports = ` +module.exports = `// SPDX-License-Identifier: GPL-3.0 + pragma solidity >=0.4.22 <0.8.0; library Assert { diff --git a/libs/remix-tests/sol/tests_accounts.sol.ts b/libs/remix-tests/sol/tests_accounts.sol.ts index 55392f8b92..1ab62b5e99 100644 --- a/libs/remix-tests/sol/tests_accounts.sol.ts +++ b/libs/remix-tests/sol/tests_accounts.sol.ts @@ -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<