You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doing the following seems to be problematic for Contract.clone and the Web3.ContractBuilder. In order to implement the following fixes with need to be investigated further than the scope of #5756
I think contractContext is just a copy of the context, which comes from self.getContextObject()here (any case), and subscribing doesn't have the effect we want.
@nikoulaicontractContext is not a copy, it's a reference to the Web3Context the user is providing
Doing the following seems to be problematic for
Contract.clone
and theWeb3.ContractBuilder
. In order to implement the following fixes with need to be investigated further than the scope of #5756Originally posted by @spacesailor24 in #5756 (comment)
I think
contractContext
is just a copy of the context, which comes fromself.getContextObject()
here (any case), and subscribing doesn't have the effect we want.@nikoulai
contractContext
is not a copy, it's a reference to theWeb3Context
the user is providing(the
console.log(contract.defaultBlock); // latest
is a bug, ascontract.defaultBlock
should bepending
as it's supposed to be set byweb3Context
)The above code works as expected, but only if the following
occurs after the new line:
The text was updated successfully, but these errors were encountered: