From 7d6075d407ae02ca5c84033508481cca195f9fc4 Mon Sep 17 00:00:00 2001 From: Konstantina Blazhukova Date: Mon, 30 Oct 2023 14:51:23 +0200 Subject: [PATCH] Adds license header to assignments.js Signed-off-by: Konstantina Blazhukova --- .../assignments/AssignmentReferenceTypes.sol | 2 +- test/solidity/assignments/assignments.js | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/contracts/solidity/assignments/AssignmentReferenceTypes.sol b/contracts/solidity/assignments/AssignmentReferenceTypes.sol index 55d4c1c98..67aef589d 100644 --- a/contracts/solidity/assignments/AssignmentReferenceTypes.sol +++ b/contracts/solidity/assignments/AssignmentReferenceTypes.sol @@ -14,7 +14,7 @@ contract AssignmentReferenceTypes { y[2] = 8; } - function testChangeReference(uint[5] storage y) internal pure { + function testChangeReference(uint[5] storage y) internal { y[3] = 10; } diff --git a/test/solidity/assignments/assignments.js b/test/solidity/assignments/assignments.js index 447ed7bd1..c552ff639 100644 --- a/test/solidity/assignments/assignments.js +++ b/test/solidity/assignments/assignments.js @@ -1,3 +1,23 @@ +/*- + * + * Hedera Smart Contracts + * + * Copyright (C) 2023 Hedera Hashgraph, LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + const { expect } = require('chai') const { ethers } = require('hardhat') const Constants = require('../../constants')