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
{{ message }}
Repository navigation
TransactionReceipt status type should be nullable #3841
I checked there isn't already an issue for the bug I encountered.
Viem Version
2.33.2
Current Behavior
TransactionReceipt['status'] is 'success' | 'reverted'
Expected Behavior
TransactionReceipt['status'] is 'success' | 'reverted' | null
Steps To Reproduce
constclient=createPublicClient({transport: http(CONFIG.WEB3_PROVIDER)});consthash: Hash="0x592ae92598bffc4e142d0b68b720788451d320d6e34da06fd765c488e7330027";constreceipt=awaitclient.getTransactionReceipt({ hash });// TS with strict:true doesn't fail here, but it should, since `receipt.status` is nullconststatus: string=receipt.status;
Activity
jxom commentedon Aug 5, 2025
Receipts must have a
0x1(success) or0x0(failure). How isnullcoming through?