Skip to content

Commit

Permalink
Fixes some comments
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantina Blazhukova <[email protected]>
  • Loading branch information
konstantinabl committed Oct 19, 2023
1 parent 51fdfad commit dae3fe4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//SPDX-License-Identifier: UNLICENSED
//SPDX-License-Identifier: Apache-2.0

pragma solidity ^0.8.20;

Expand Down
2 changes: 1 addition & 1 deletion contracts/solidity/assignments/DestructuringReturns.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//SPDX-License-Identifier: UNLICENSED
//SPDX-License-Identifier: Apache-2.0

pragma solidity ^0.8.20;

Expand Down
5 changes: 4 additions & 1 deletion test/solidity/assignments/assignments.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { expect } = require('chai')
const { ethers } = require('hardhat')
const Constants = require('../../constants')

describe('Test assignments', function () {
describe('@solidityequiv1 Test assignments', function () {
let signers;

before(async function () {
Expand All @@ -21,6 +21,9 @@ describe('Test assignments', function () {
})

it('should verify assignment of reference types', async function () {
// here we are testing that if a parameter is assigned to memory a copy will be created
// and the original object wont be changed
// while if it is in storage and only referenced we expect it to change
await contractReferenceTypes.testAssignmentOfReferenceTypes();
const result = await contractReferenceTypes.getSomeArray();
expect(result).to.deep.equal([ethers.BigNumber.from(1), ethers.BigNumber.from(2), ethers.BigNumber.from(3),
Expand Down

0 comments on commit dae3fe4

Please sign in to comment.