New answers tagged

0

I think what you are looking for are events. They can be emitted on transactions and picked up by off chain parties. Read https://docs.soliditylang.org/en/v0.8.10/contracts.html#events


0

TL/DR: Use a mapping with a dynamic array: mapping(address => DataStruct[]) public dataStructsOfOwner; If someone could guide me on where to better post this answer, please go ahead. I had another task: Save contracts mapped to an owner. I have done a short simulation with these two options. // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; struct ...


Top 50 recent answers are included