Then !isPending(tx) evaluates to true and the following expression evaluated is tx.recepeit which throws Cannot read property 'recepeit' of null š„š„š„
This PR fixes that.
Also, is it okay that the property is called recepeit and not receipt ? I searched it and it's like that all over the library...
The following code throws many times:
Because when we get a transaction like this:
The value of
tx
can be null because:And then when we do:
isPending
returnsnull
:Then
!isPending(tx)
evaluates totrue
and the following expression evaluated istx.recepeit
which throwsCannot read property 'recepeit' of null
š„š„š„This PR fixes that.
Also, is it okay that the property is called
recepeit
and notreceipt
? I searched it and it's like that all over the library...