I am following a tutorial to use oracle from Provable, so I have to import "https://github.com/provable-things/ethereum-api/blob/master/provableAPI_0.6.sol". I notice that the contract is very big but all I need is the function provable_query. A big imported contract make the deployment consume more gas, right? Is it a good practice to delete things unrelated to the desired function provable_query before deployment?

  • Have you checked what function provable_query needs inside this contract? Commented May 22, 2020 at 20:06
  • I haven't checked in details but I am pretty sure I can still leave out a lot of code and provable_query would still work. I wanted to ask in general whether it would make a different in gas usage to justify the hassle. Commented May 24, 2020 at 9:16


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.