Skip to content

Commit

Permalink
Handle lack of paymaster
Browse files Browse the repository at this point in the history
  • Loading branch information
Destiner committed Apr 29, 2024
1 parent e0a59d9 commit 70157af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/Op.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,17 @@
type="regular"
:chain="userOpData.chainId"
/>
via
by
<BlockInfo
v-if="userOpData.paymaster !== zeroAddress"
:value="userOpData.paymaster"
:label="
getAddressLabel(userOpData.chainId, userOpData.paymaster)
"
type="address"
:chain="userOpData.chainId"
/>
<template v-else>account itself</template>
</div>
<div class="description-row">
Bundled by
Expand Down Expand Up @@ -115,7 +117,7 @@
</template>

<script setup lang="ts">
import { Address, Hex, formatUnits } from 'viem';
import { Address, Hex, formatUnits, zeroAddress } from 'viem';
import { computed, ref, watch } from 'vue';
import { useRoute } from 'vue-router';
Expand Down

0 comments on commit 70157af

Please sign in to comment.