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
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
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