Solidity: can i use in live deployement pragma experimental ABIEncoderV2?

Created on 12 Nov 2018  路  2Comments  路  Source: ethereum/solidity

Hi, all:

I really like the feature:
pragma experimental ABIEncoderV2;

Can I use this feature so that I can return a struct?
When can I use this feature?

The compiler gives the warning. That mean I should only use it for development.
That makes no sense to me.

Warning: Experimental features are turned on. Do not use experimental features on live deployments.
pragma experimental ABIEncoderV2;

Most helpful comment

The encoder should not cause any security issues (of course we can never be sure). The main reason it is marked experimental is because it causes higher gas usage.

All 2 comments

The encoder should not cause any security issues (of course we can never be sure). The main reason it is marked experimental is because it causes higher gas usage.

except for high gas usage. Is there another reason for not using pragma experimental ABIEncoderV2 for live development?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AnthonyAkentiev picture AnthonyAkentiev  路  3Comments

ddeclerck picture ddeclerck  路  3Comments

madvas picture madvas  路  3Comments

hiqua picture hiqua  路  4Comments

chriseth picture chriseth  路  3Comments