Closed josojo closed 6 months ago
bytes memory metadata = abi.encode( IERC20Metadata(token).name(), IERC20Metadata(token).symbol(), IERC20Metadata(token).decimals() );
Some tokens might not support those methods, one needs to call them using staticcall
Is this an upstream polygon decision or did we do it?
I opened the Pr to make it clearer
bytes memory metadata = abi.encode( IERC20Metadata(token).name(), IERC20Metadata(token).symbol(), IERC20Metadata(token).decimals() );
Some tokens might not support those methods, one needs to call them using staticcall