Skip to content

Commit 22e1a8d

Browse files
[Dashboard] Add support for Sophon mainnet
1 parent de297e4 commit 22e1a8d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

apps/dashboard/src/@/constants/thirdweb.server.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@ export function getConfiguredThirdwebClient(options: {
4242

4343
if (!getTransactionDecorator()) {
4444
setTransactionDecorator(async ({ account, transaction }) => {
45-
// special override for sophon testnet (zk chain)
45+
// special override for sophon (zk chain)
4646
// sophon only allows transactions through their paymaster
4747
// so always use eip712 tx + paymaster
48-
if (transaction.chain.id === 531050104) {
48+
if (
49+
transaction.chain.id === 531050104 ||
50+
transaction.chain.id === 50104
51+
) {
4952
const serializedTx = await populateEip712Transaction({
5053
transaction,
5154
account,

apps/dashboard/src/components/buttons/MismatchButton.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ const GAS_FREE_CHAINS = [
5959
75513, // Geek verse testnet
6060
75512, // Geek verse mainnet
6161
531050104, // sophon testnet
62+
50104, // sophon mainnet
6263
37111, // lens sepolia
6364
4457845, // zero testnet
6465
978658, // treasure topaz

0 commit comments

Comments
 (0)