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
hi, I'm trying to decode Action from SignedTransaction object, I can decode memo and quantity, but unable to decode from and to into string objects.
here's what I do.
consttransaction=Transaction.from(signedTransaction);constaction=Action.from(transaction.actions[0]);constabi=awaitcontractKit.load('eosin.token');constdecodedAction=action.decodeData(abi.abi)asany;// from is Uint64, but I need address of account, e.g `garlicbutter`constfrom=decodedAction?.from?.value;// ❌constto=decodedAction?.to?.value.toString();// ❌constamount=decodedAction?.quantity?.value;// ✅constmemo=decodedAction?.memo;// ✅
The text was updated successfully, but these errors were encountered:
hi, I'm trying to decode
Action
fromSignedTransaction
object, I can decodememo
andquantity
, but unable to decodefrom
andto
into string objects.here's what I do.
The text was updated successfully, but these errors were encountered: