Solidity Struct

[Solved] Solidity Struct | Solidity - Code Explorer | yomemimo.com
Question : solidity struct

Answered by : john-appleseed

struct StructName {	uint8 text1, uint32 text2, uint8[3] textlist }
StructName MyStruct = StructName(10, 300, [5, 7, 8])
// MyStruct.text1 => 10
// MyStruct.text2 => 300
// MyStruct.textlist => [5, 7, 8]

Source : | Last Update : Fri, 29 Apr 22

Answers related to solidity struct

Code Explorer Popular Question For Solidity