-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CallReceipt is returning wrong from
property
#2449
Comments
Summary
CallTransferTransferOut |
@danielbate you mentioned in sync about other possible mismatches? |
@LuizAsFight there is no error here. We cannot rename Also, the property That is why its value is being extracted from The value for
This property will only be defined in case of a contract that is calling another contract. When this is not the case, it will be null. That is why in most cases its value is |
@Torres-ssf Can this be closed? |
@arboleya I am not enterely sure. I may have misunderstood @LuizAsFight statement, so I am waiting for his confirmation |
@LuizAsFight Gentle ping — any input here? |
the problem here is returning things different from spec. for instace this is what the spec says about "from" field in Call receipts:
and this is what the sdk returns from "from" field
problem 1: "from" returned by sdk doesn't reflect the real "from" from spec Instead of returning the above I believe the sdk should return it parsed but don't manipulate the fields, something like:
I think all receipt types should be visited to check if this happens also, and then fix them |
@LuizAsFight I am closing this as it was addressed on FuelLabs/fuel-specs#610 |
@Torres-ssf should we be closing this one? I'd of thought we'd need to sync with the specification? |
@petertonysmith94 You are correct |
Motivation
Contract Call receipts are getting a from property
I think
from
is not correct for this receipt. It should beid
like in othercase
inside that sameswitch
, or it should be removed.reasons according to spec :
1- shows
Call
contracts prop already have afrom
prop2- there is no
contractId
and noid
inCallReceipt
, which means thefrom
being provided by this method will be always0x0000...
UPDATE
To fix this, we need to ensure that the TS SDK's receipts types are in alignment with the Fuel specs
Spec changes
*
The text was updated successfully, but these errors were encountered: