0x5454de40eb75020deba6a57fc6e258577cf35858 is an externally owned address. Calling getInit on any non-contract address will result in this uncaught error.
This fix returns undefined if getInit is called on a non-contract address. Imitates the behaviour of Zilliqa JS SDK
Edit: Although this issue is fundamentally with the transaction.provider, it should not be returning undefined for response.
Reproduction Steps:
0x5454de40eb75020deba6a57fc6e258577cf35858
is an externally owned address. CallinggetInit
on any non-contract address will result in this uncaught error.This fix returns
undefined
ifgetInit
is called on a non-contract address. Imitates the behaviour of Zilliqa JS SDKEdit: Although this issue is fundamentally with the
transaction.provider
, it should not be returningundefined
forresponse
.