Added a separate function callToContractA: This function is same as CallToContractA, just the difference is that it gives user the extra ability to use the optional gas parameter provided by solidity. Also it will let solidity developers know that this gas parameter allows any user to specify the amount of gas which one wants to send along with the function, if that transaction exceeds the amount of gas provided, transaction be reverted
Modified testCallDoesNotExist: Just removed that unused parameter _addr and added a require check whether our test call got succeeded or it been failed
Two changes are made in particular:
Added a separate function
callToContractA
: This function is same asCallToContractA
, just the difference is that it gives user the extra ability to use the optional gas parameter provided by solidity. Also it will let solidity developers know that this gas parameter allows any user to specify the amount of gas which one wants to send along with the function, if that transaction exceeds the amount of gas provided, transaction be revertedModified
testCallDoesNotExist
: Just removed that unused parameter_addr
and added a require check whether our test call got succeeded or it been failedThanks!