Skip to content

Commit

Permalink
fix: Fix transaction details (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinoosss committed Jul 31, 2023
1 parent 2c0153b commit cdb763b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/transactions/details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const TransactionDetails = () => {
</Badge>
</dd>
</DLWrap>
{v.type === '/vm.m_call' && v.args.type === 'Transfer' && (
{v.grc20 === true && v.type === '/vm.m_call' && v.args.type === 'Transfer' && (
<TransferContract contract={v} desktop={desktop} />
)}
{v.type === '/bank.MsgSend' && v.args.type === 'Transfer' && (
Expand Down
4 changes: 2 additions & 2 deletions src/repositories/api/selector/select-transaction-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const valueForContractType = (contract: any) => {
type: '',
data: {},
};
const {type, pkg_func} = contract;
const {type, pkg_func, grc20} = contract;

if (type === '/vm.m_addpkg' && pkg_func === 'AddPkg') {
return (map = {
Expand All @@ -37,7 +37,7 @@ const valueForContractType = (contract: any) => {
},
});
} else if (type === '/vm.m_call') {
if (pkg_func === 'Transfer') {
if (grc20 === true && pkg_func === 'Transfer') {
return (map = {
type: pkg_func,
data: {
Expand Down

0 comments on commit cdb763b

Please sign in to comment.