Skip to content

Commit

Permalink
Merge pull request #334 from aura-nw/hotfix/fix-tx-rawmessage
Browse files Browse the repository at this point in the history
hotfix rawMessage transation
  • Loading branch information
harisato authored Nov 3, 2023
2 parents 31ba513 + d90c1f2 commit 35be3ff
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function Execute({
useEffect(() => {
let newTotalAmount = new BigNumber(0)

JSON.parse(data.txDetails.rawMessage).map((message: any) => {
JSON.parse(data.txDetails?.rawMessage).map((message: any) => {
if ('/cosmos.bank.v1beta1.MsgSend' == message.typeUrl) {
newTotalAmount = newTotalAmount.plus(+formatNumber(message?.value?.amount[0]?.amount || 0))
}
Expand Down Expand Up @@ -118,7 +118,7 @@ export default function Execute({
</div>
<Divider />
<div className="msgs">
{JSON.parse(data.txDetails.rawMessage).map((message, index) => {
{JSON.parse(data.txDetails?.rawMessage).map((message, index) => {
return <Message key={index} index={index} msgData={message} />
})}
</div>
Expand Down

0 comments on commit 35be3ff

Please sign in to comment.