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
The problem is that the receipt returns 0x0000..., as there was no assetId in the contract call made. The previous code was working only because the baseAssetId was the same, and the input would have the correct assetId.
Solution
When the receipt returns assetId: 0x0000..., consider getting the input that has the current baseAssetId, meaning that who payed the fee will be identified as the contract caller.
have been created to address this on our end going forward, if FuelLabs/fuel-core#1941 gets integrated on fuel-core then we can create another issue to make accommodations for that.
What version of fuels-ts are you using?
0.88.1
Steps to Reproduce
increment
buttonMore details
The screen above tries to show the operations of the transaction for the user to check and confirm it. It's currently showing no operations.
Behind the scenes it's consuming
getTransactionSummary
.When this method tries to compute the contract call operations, it tries to identify who called the contract using the assetId returned from the receipt.
The problem is that the receipt returns
0x0000...
, as there was no assetId in the contract call made. The previous code was working only because the baseAssetId was the same, and the input would have the correct assetId.Solution
When the receipt returns
assetId: 0x0000...
, consider getting the input that has the currentbaseAssetId
, meaning that who payed the fee will be identified as the contract caller.fuel-core FuelLabs/fuel-core#1941
I think this is something that could be changed in the VM, it could return
null
instead of0x0000...
, but it doesn't change the solution aboveThe text was updated successfully, but these errors were encountered: