@inco/lightning-preview 0.8.0-devnet-3 → 0.8.0-devnet-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inco/lightning-preview",
3
- "version": "0.8.0-devnet-3",
3
+ "version": "0.8.0-devnet-4",
4
4
  "repository": "https://github.com/Inco-fhevm/inco-monorepo",
5
5
  "files": [
6
6
  "src/",
@@ -39,7 +39,10 @@ abstract contract EList is
39
39
  event EListShuffle(elist indexed list, uint256 indexed counter, elist indexed result, uint256 eventId);
40
40
  event EListReverse(elist indexed list, elist indexed result, uint256 eventId);
41
41
 
42
- function newEListFromInputs(bytes[] memory inputs, ETypes listType, address user) internal returns (elist newList) {
42
+ function newEListFromInputs(bytes[] calldata inputs, ETypes listType, address user)
43
+ internal
44
+ returns (elist newList)
45
+ {
43
46
  require(isTypeSupported(listType), UnsupportedType(listType));
44
47
 
45
48
  // TODO: Add a new event to create new elist from inputs, can be done as an upgrade to optimize for gas and castore.
@@ -70,7 +73,7 @@ abstract contract EList is
70
73
  return newEListFromHandles(handles, listType);
71
74
  }
72
75
 
73
- function newEList(bytes[] memory inputs, ETypes listType, address user)
76
+ function newEList(bytes[] calldata inputs, ETypes listType, address user)
74
77
  external
75
78
  payable
76
79
  payingMultiple(inputs.length)
@@ -8,7 +8,7 @@ interface IEList is IEListHandleMetadata {
8
8
 
9
9
  function newEList(bytes32[] memory handles, ETypes listType) external returns (elist newList);
10
10
 
11
- function newEList(bytes[] memory inputs, ETypes listType, address user) external payable returns (elist newList);
11
+ function newEList(bytes[] calldata inputs, ETypes listType, address user) external payable returns (elist newList);
12
12
 
13
13
  function listAppend(elist list, bytes32 value) external returns (elist result);
14
14