I know that web3 exposes a function to estimate gas limit, but is it accurate when sending to a contract?
AFAIK the amount of gas I'm gonna need if sending to a contract depends on the contract code, so in general case can be anything.
Is there a way to reliably figure out the gas limit for a transaction if it's to a contract before sending it?