Tag: arrays

24 How to initialize an empty array and push items into it? 2017-01-20T07:15:28.060

19 Store data in mapping vs. array 2016-04-02T15:11:41.863

15 How to clear large arrays without blowing the gas limit? 2016-04-26T15:37:20.760

15 Passing an array as a parameter from javascrpt (web3) to a Solidity function 2016-08-28T09:39:41.703

15 Solidity: Can you return dynamic arrays in a function? 2017-06-06T12:32:38.207

11 Is it impossible to use an array of strings as the argument to solidity function? 2016-02-26T10:31:41.123

10 How can I instantiate an array of addresses? 2016-03-18T22:35:41.170

10 Can solidity contract arrays receive arrays of addresses as parameters? 2016-08-22T10:11:48.720

9 How to concatenate a bytes32[] array to a string? 2016-02-06T15:45:36.420

9 How can I create complex array relationships in solidity? 2016-03-29T20:02:25.803

9 How to manually initialise an array in Solidity? 2016-05-28T20:54:54.530

9 Does "delete" on mapping really frees the memory space? 2016-10-25T11:15:30.910

8 Is there a maximum array size in Solidity? 2017-08-10T08:27:26.007

7 What's the limitation that requires Solidity array dimensions to be declared backwards? 2016-01-20T20:44:02.137

7 Is it convenient to use mappings as temporary KeyValue instances? 2016-04-01T08:15:52.387

7 Splice Struct Entry by Index in Solidity 2016-04-05T14:39:24.080

7 Calling public array of structs using web3 2016-04-17T08:17:32.893

7 Solidity: Initialize struct containing string array 2016-05-02T17:48:14.537

7 Inline initialization of integer array 2016-05-07T18:30:53.113

7 Problem accessing array inside struct 2016-07-14T15:28:02.017

7 Initialize struct with an empty array 2017-01-29T22:58:29.007

7 What are the benefits of deleting storage array elements? 2018-03-19T16:13:16.493

6 2 mapped structs with an address array - push not working 2016-05-02T16:59:59.377

6 How to initialize empty struct array in new struct? 2016-05-03T00:35:04.627

6 Unable to add new struct item into mapping or array 2016-12-12T12:17:02.930

6 Accessing to a dynamically sized array value in a contract 2017-01-13T17:48:48.350

5 How do you implement PubSub without running out of gas (attack vector)? 2016-05-08T17:50:59.563

5 Optimizing storage for an array of addresses 2016-06-04T23:08:31.547

5 "Push" is not available in bytes32[], memory out of storage 2017-06-18T16:21:55.150

5 What is the array size limit of a returned array from a contract function call in Solidity? 2017-08-08T14:17:44.897

5 Why memory arrays are unresizable? 2017-09-12T09:00:36.630

5 How does dynamic array memory reallocating work? 2017-10-13T13:19:28.713

5 Compare structs and arrays with keccak256 in order to save gas 2018-05-30T06:38:53.983

4 Accessing mapping inside object with web3.js 2016-04-21T07:03:46.380

4 Delete or clear a mapping 2016-05-13T18:17:17.657

4 How to provide gas value when we can't calculate it, when using arrays? 2016-12-20T09:42:11.963

4 Constructing contract with an address array 2017-01-06T15:42:00.583

4 Invalid array length, expected integer literal 2017-02-23T10:48:49.493

4 How to convert a string to bytes32 array? 2017-03-18T03:45:22.647

4 Returning dyanamic array from function 2017-03-29T05:43:36.670

4 Why does the wallet contract convert addresses to integers? 2017-04-30T23:45:10.217

4 How initialize with empty list? 2017-06-08T14:45:47.777

4 Function with more than 16 arguments 2017-09-29T05:28:56.720

4 Assigning an array creates a pointer or copies an array? (Solidity) 2017-10-03T14:00:19.667

4 How to initialize an empty array inside a struct? 2017-11-15T21:15:08.167

4 Search in Address[] if exist the same address sender 2018-02-05T20:01:27.437

4 How to fill dynamic in-memory array 2018-04-26T10:11:14.677

3 returning a fixed size 2D array to web3.js 2016-03-04T20:15:14.600

3 Cannot delete address value from address array (solidity) 2016-07-21T13:21:48.443

3 Assigning a 2D byte array and accessing via Web3 2016-08-31T03:32:47.870

3 Error encountered during contract execution [Bad jump destination] 2016-09-30T15:51:13.930

3 How does a plot "Gas price to call / memory allocated" looks like? 2016-11-22T00:43:23.617

3 Concatenating arrays in Solidiy 2016-12-10T15:51:36.370

3 Geth - reading public address[] from contract 2017-01-10T18:14:49.880

3 Geth - reading addresses inside mappings from a contract 2017-01-20T14:43:20.653

3 Is is possible to insert objects into an Array at the specified position and shift indexes? 2017-01-27T11:52:36.027

3 Referring to a struct within an array 2017-02-14T01:23:43.753

3 Solidity function that accepts mapping as input 2017-02-21T11:30:52.887

3 How to update/insert data into the cell in 2-dimensional array? 2017-02-22T10:26:17.920

3 how to create a nested for loop that stores the hashed value for each 2017-04-11T20:12:42.590

3 How to copy/assign an array via for loop 2017-06-13T07:53:06.980

3 Solidity initialize memory array of fixed size 2017-10-08T23:06:53.527

3 Can I filter through an array of structs? 2017-10-09T18:27:37.750

3 Store addresses in array or mapping? 2017-12-02T16:36:33.887

3 Stack too deep | Use memory array to store many "local" variables? 2018-01-19T22:50:52.880

3 Array or mapping, which costs more gas? 2018-01-26T07:08:08.437

3 Why would you use an array as an input? 2018-02-11T02:59:34.673

3 How to convert bigNumber array to int array? 2018-05-18T09:56:48.343

3 How to pop from (decrease the length of) a memory array in Solidity 2018-06-23T08:41:33.853

3 Pass array of structs to contract from truffe using ABIEncoderV2 2018-09-07T10:55:24.523

3 Bytes variables are connected 2018-11-15T01:20:25.743

2 How to find unique entries in mappings? 2016-03-03T02:48:42.120

2 Pass an array along when a contract creates a new contract 2016-03-12T13:18:47.600

2 Implement constant search function in Solidity or in Javascript? 2016-12-05T10:59:35.420

2 How can I push address to dynamic array without duplication? 2017-03-03T14:52:06.333

2 Ethereum: invoking contract function with bytes32 array 2017-03-30T09:57:04.627

2 Why is dynamic array length not updated after addition of new element? 2017-06-21T06:50:49.983

2 Wrong order when calling a function to return a string 2017-07-09T13:53:14.060

2 Global storage array - setting length on declaration vs inside a function 2017-07-25T06:19:29.660

2 How to delete element of array, without index? 2017-08-09T16:53:50.607

2 Iniitalize struct in struct 2017-12-08T13:51:09.677

2 Efficient approach to delete element from array in Solidity 2018-01-10T22:33:32.770

2 Resetting storage slot increases gas usage although should decrease it 2018-02-11T20:16:59.743

2 What is the right way to create a struct instance inside a function? 2018-02-17T11:11:56.383

2 Pushing a struct to an array which contains an array itself 2018-02-17T23:28:51.027

2 Returning 2D array with dynamic sizes from a function 2018-02-22T18:13:02.747

2 How to initialize a uint16[] array? 2018-04-25T22:09:43.010

2 Storing a dynamic array of structs which contains a dynamic array of structs 2018-08-16T00:02:55.123

2 how to create a smart contract that receives funds, displays addresses that sent the funds? 2018-08-20T11:28:11.280

2 Working on my first smart contract for college...Need help with one error! 2018-08-23T17:43:28.843

2 Can i create a new address this way? 2018-09-16T14:41:15.387

2 Array of items vs mapping+array of ids with web3js? 2018-09-21T08:51:12.543

2 How to map an address with a string array in solidity? 2018-10-09T11:56:22.123

2 Why is putting data to storage more expensive during the deployment of contract than storing the same data by a method? 2018-10-30T04:20:19.100

1 Why isn't my array kept in storage 2016-10-16T14:17:20.397

1 Removing Array Element by Copying to Temp Array 2016-10-26T17:53:24.603

1 Parsing contract method output as an array of fields 2016-12-20T15:43:24.837

1 Struct containing array containing array initialization problem 2017-03-13T10:09:13.967

1 Is it possible to make a call to contract function with varying arguments or an array List? 2017-05-05T12:03:24.077