diff --git a/adapters.go b/adapters.go index b712e314..9378e802 100644 --- a/adapters.go +++ b/adapters.go @@ -117,6 +117,18 @@ func adaptTransactionMetaToExpectedOutput(m map[string]any) map[string]any { if !ok { uiTokenAmount["decimals"] = 0 } + _, ok = uiTokenAmount["uiAmount"] + if !ok { + uiTokenAmount["uiAmount"] = nil + } + _, ok = uiTokenAmount["amount"] + if !ok { + uiTokenAmount["amount"] = "0" + } + _, ok = uiTokenAmount["uiAmountString"] + if !ok { + uiTokenAmount["uiAmountString"] = "0" + } } } }