UNPKG

@patchworkdev/pdk

Version:

Patchwork Development Kit

18 lines (17 loc) 546 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getChainForNetwork = getChainForNetwork; const chains_1 = require("viem/chains"); function getChainForNetwork(network) { switch (network) { case 'base': return chains_1.base; case 'base-sepolia': return chains_1.baseSepolia; case 'local': return chains_1.anvil; default: console.warn(`Unknown network ${network}, defaulting to base`); return chains_1.base; } }