diff --git a/contracts/solidity/errors/Panic.sol b/contracts/solidity/errors/Panic.sol index ee07ca1d7..a38900d00 100644 --- a/contracts/solidity/errors/Panic.sol +++ b/contracts/solidity/errors/Panic.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: UNLICENSED +// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.20; contract Panic { diff --git a/test/constants.js b/test/constants.js index 0caa98c60..d8781cc8b 100644 --- a/test/constants.js +++ b/test/constants.js @@ -123,7 +123,7 @@ const Contract = { Defaults: 'Defaults', AssignmentReferenceTypes: 'AssignmentReferenceTypes', DestructuringReturns: 'DestructuringReturns', - Panic: 'Panic' + Panic: 'Panic', } const CALL_EXCEPTION = 'CALL_EXCEPTION' diff --git a/test/solidity/errors/panicErrors.js b/test/solidity/errors/panicErrors.js index 026ebb326..29ff94e9a 100644 --- a/test/solidity/errors/panicErrors.js +++ b/test/solidity/errors/panicErrors.js @@ -1,8 +1,28 @@ -const { expect, assert } = require('chai') +/*- + * + * 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') -describe('Panic Errors', function () { +describe('@solidityequiv3 Panic Errors', function () { let contract before(async function () {