RigoBlock / contracts

[DEPRECATED] directory of our contracts
Apache License 2.0
1 stars 0 forks source link

possible eventful improvement, with impact on how input have to be sent #33

Open gabririgo opened 6 years ago

gabririgo commented 6 years ago

in order to be able to query more data from the eventful we could add a bytes32[] field. In order to do so, we have to input them in the eventful. Which means we have to send them over from the dragos.

function pushbytes(bytes32[] _dataArrays) public pure { arrayofbytes(_dataArrays); }

function arrayofbytes(bytes32[] _dataArrays) public pure returns (bytes32[] dataArrays) { return dataArrays = _dataArrays; }

Since right now we cannot return an empty bytes32[] from solidity, the arrays have to be input from .js Since it is not clear what we are going to send from .js we leave this issue open as a reminder of a possible improvement

gabririgo commented 6 years ago

we will send a bytes field, which will allow an arbitrary array of data (from 1 to 32 fields) be sent to the eventful. This is more useful for the dragos than for the vaults