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
Functions such as getLastHeader don't have any parameter. However, the way the exposed function infers them requires in typescript to pass undefined as parameter, otherwise it won't work.
expected
constclient=publicClient.extend(hemiPublicBitcoinKitActions())client.getLastHeader()// Doesn't work in typescript; should not require any parameter, but it requires "undefined" passed to compileclient.getLastHeader(undefined)// works
The text was updated successfully, but these errors were encountered:
Functions such as
getLastHeader
don't have any parameter. However, the way the exposed function infers them requires in typescript to passundefined
as parameter, otherwise it won't work.expected
The text was updated successfully, but these errors were encountered: