The Solidity Contract-Oriented Programming Language - By chatting here you agree to the https://github.com/ethereum/solidity/blob/develop/CODE_OF_CONDUCT.md
pragma solidity ^0.4.21;
pragma experimental ABIEncoderV2;
contract NestedArrays {
function test1(uint256[][3] u) returns (uint256 x){
x = u[0][0] + u[1][0] + u[2][0];
}
}
The above compiles, but I am unable to get it working correctly, either in remix or with a truffle test. When I run in remix, and pass something like [[1],[2,3],[4,5]]
the transaction reverts and the 'decoded input' is very clearly wrong. A function declared with uint256[3][]
works as expected, but that's not what I want (i.e. I want to pass an array containing three variable length arrays, not an array containing a variable number of arrays with length three). Is such a function parameter not properly supported, even though it compiles?
hello guys,
I have just constructed and successfully executed a token transfer transaction with extra data behind the message call (check extra 8888 added at the end of tx payload).
https://etherscan.io/tx/0xac41ca71ce075d7efb031433b205f99382cd63532de684b4437a23096b242c74
It seems working, but the question is: is it specified in solidity or it can change any time?
It is could be interesting as the base for stealth token transaction in ethereum
@phalexo with most of the proposed standards the changes are orthogonal, yes. Anything that isn't you could plan for in advance if you think that it's at all a likely outcome.
In my ERC-20 contracts I have a separate storage contract for token balances but allowances are in the ERC-20 contract. If I upgrade to a contract without allowances (or without the same way of doing allowances) I can just drop the existing ones with the old contract and set something new up on the new contract. Plus, there's no reason why you couldn't leave the ERC-20 contract in place and have multiple contracts access the same token store