I've created a function which gets a struct which contains int+struct. Now when I want to test it, what data should I send for example on Remix:
here's the code, got from another SO question on - How to send an array of structs as arguments
pragma solidity ^0.4.24;
pragma experimental ABIEncoderV2;
contract ExchangeContract {
enum CurrencyType { USD, TWOKEY, BTC, ETH, DAI, USDT, TUSD, EUR, JPY, GBP}
mapping(uint256 => CurrencyPrice) public priceByCurrencyType;
struct Price{
uint price;
uint decimals;
}
struct CurrencyPrice{
uint currencyInt;
Price price;
}
function updatePrices(CurrencyPrice[] memory _array) public {
for(uint i=0; i<_array.length; i++){
priceByCurrencyType[_array[0].currencyInt].price=_array[i].price;
}
}
}
Now, I want to interact with that function from Remix - is it possible?