Tag: struct

33 What is the zero, empty or null value of a struct? 2016-02-02T17:35:07.700

26 How to Initialize a Struct? 2016-02-19T17:01:02.513

21 Returning a struct and reading via Web3 2016-05-04T20:38:28.977

19 Can I save structs in a Mapping? 2016-03-29T12:22:19.683

17 How can I return struct when function is called? 2016-07-22T08:29:57.360

17 How to delete an element from a mapping? 2017-04-18T09:47:03.783

16 Initialising structs to storage variables 2016-05-31T07:16:16.010

15 What is the zero value for a string? 2016-06-05T18:08:30.253

15 Stack too deep, try removing local variables 2016-07-22T09:55:46.097

13 Struct not being stored in mapping when it contains more than two 'string' properties. Bug? 2016-02-03T09:13:10.463

13 Child contract vs struct 2016-09-11T07:38:08.843

10 How to create an iterable key->value structure in Solidity? 2016-04-13T08:09:39.940

10 Convert struct to bytes in Solidity 2017-01-09T15:22:29.710

10 How to test if a struct state variable is set 2017-01-24T05:11:25.260

9 Is it possible to have mappings inside mappings? 2016-04-07T10:16:01.747

9 Nested structs in solidity? 2017-07-23T13:31:08.127

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

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

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

7 access struct from mapping in a different contract 2017-01-05T15:26:20.107

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

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 Access struct object of one contract from another 2016-08-23T04:34:54.993

6 Return a struct from a Solidity Contract 2016-11-18T15:18:57.020

6 Problem setting uint value to zero 2017-01-05T13:01:04.020

6 Returning structs in new version in Solidity 2017-10-27T13:10:37.777

5 Default value of a struct 2017-01-17T10:46:09.217

5 Why does inserting a Struct cost 5,000 extra gas per item in the Struct? 2018-02-20T06:29:55.313

5 This type is only supported in the new experimental ABI encoder - why? 2018-03-17T18:41:26.987

4 Throw not generated when accessing mapping with invalid key 2016-03-30T22:07:38.580

4 Is it possible to get an address of a struct in the Library or Contract without using mapping? 2016-10-21T12:19:57.623

4 A solidity function to accept two mappings and return a single combined map 2016-12-03T15:37:13.900

4 Problem storing more than three variables in a mapped struct 2016-12-18T23:32:16.513

4 Wrong value returned from function 2017-01-11T14:42:35.393

4 Benefit to using structs? 2017-01-24T20:19:22.910

4 Transaction receipt has contractAddress as null 2017-02-10T05:08:36.427

4 Length not found or not visible after argument-dependent lookup in struct storage ref 2017-02-22T09:31:49.817

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

4 assign a value to a member in a struct 2017-04-13T05:50:52.983

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

4 Solidity function to return a data struct 2017-06-15T17:20:14.963

4 (Sub) contract vs. library vs. struct vs. Interface 2017-10-11T16:37:34.137

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

3 No event after a struct push in solidity 2016-06-03T07:04:31.170

3 Struct inheritance or workaround 2016-08-30T07:27:31.030

3 how to judge if a struct var exists in solidity? 2016-12-21T12:18:44.470

3 Trying to pass 1 struct values from 1 contract to other struct in 2nd contract 2017-01-04T16:17:03.363

3 Mapping multiple keys in a mapping to a single struct 2017-02-06T22:29:32.600

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

3 Mapping member isn't initialized when creating a struct 2017-03-21T15:25:46.230

3 How to check if struct belongs to address? 2017-08-30T13:25:33.363

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

3 Is reading data free unlike a transaction? 2017-11-25T05:04:04.760

3 Searching data on a smart contract? 2018-02-15T22:02:50.537

3 Solidity bool size in Structs 2018-02-16T17:19:58.427

3 Can a struct have contract instance? 2018-04-11T08:24:57.330

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

3 Initializing array of structs inside a mapping of structs - "UnimplementedFeatureError 2018-10-11T13:12:46.323

2 Is it possible to have user-defined Struct as a _KeyType in a Mapping in Solidity? 2016-08-13T08:52:33.253

2 Unable code fails when initializing mapping of structure 2016-11-12T13:39:27.010

2 Recursive struct triggers Uncaught JavaScript exception in browser-solidity 2016-11-15T15:32:47.857

2 Empty address in Struct 2017-01-06T17:03:40.683

2 Solidity - struct initial mapping can be ignored 2017-04-09T00:02:06.193

2 Is struct data returned from web3 guaranteed to be in the correct order? 2017-04-25T17:38:37.870

2 Storing the same struct in two mappings 2017-07-29T12:53:26.823

2 How to access Objects from different Contracts 2017-09-05T15:51:23.137

2 Struct variable of type enum not getting updated 2017-11-14T09:04:44.927

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 Update struct from function only if parameters exists 2018-02-04T19:52:34.140

2 Alternative to using structs in web3.js 2018-02-17T03:38:14.920

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 How to create a new struct instance without populating all the properties 2018-04-15T17:42:17.237

2 Passing struct into new contract through constructor 2018-05-30T09:33:53.617

2 Modify Struct on Upgradeable Smart Contracts 2018-07-24T18:03:41.147

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

2 Access single value of a mapped struct 2018-08-16T12:19:20.063

2 Adding an array in mapping 2018-08-20T05:57:20.770

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

1 usedGas comparison: `push()` a struct into the array vs change all the values on the same struct that is stored in the array 2017-02-07T08:19:26.693

1 How to compare hash of two structures? 2017-02-28T17:02:49.753

1 Web3J: callback to retreive public struct 2017-03-02T12:44:04.433

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

1 public struct showing stack overflow error 2017-03-28T11:14:01.480

1 Pushing/Pulling data from data storage contract 2017-05-07T03:28:20.110

1 Can a mapping or array within struct made public? 2017-06-10T15:53:12.087

1 (Solidity) Inheritance: how to add additional attributes to a struct in base contract? 2017-06-16T18:46:08.047

1 Can't retrieve public array members with web3 2017-08-22T22:20:19.027

1 Accessing External Contract's Struct Array mappings 2017-09-19T15:46:26.727

1 Push to dynamical array of structs using loop in external function 2017-10-24T12:52:49.100

1 Passing a struct to a function gives TypeError: Internal or recursive type not allowed 2017-10-25T08:12:40.153

1 Struct value not updating 2017-11-13T11:14:05.177

1 Returning bytes from array of structs 2017-12-21T04:14:00.613

1 Passing the address of a structure allocated in storage on one contract, to a function on another contract 2018-01-12T09:05:29.687

1 Function that adds struct to an array in the blockchain does not execute when called by another function 2018-01-13T02:11:05.470

1 Having trouble interacting with a simple contract 2018-01-27T23:20:49.083

1 Solidity mapping struct and search question, how to search by name? 2018-02-04T16:31:16.837