(value, variableName, fallbackValue)
| 42 | } |
| 43 | |
| 44 | function parseWeiString(value, variableName, fallbackValue) { |
| 45 | const rawValue = value || fallbackValue; |
| 46 | |
| 47 | if (!/^\d+$/u.test(rawValue)) { |
| 48 | throw new Error(`${variableName} must be a non-negative integer string in wei`); |
| 49 | } |
| 50 | |
| 51 | return BigInt(rawValue).toString(); |
| 52 | } |
| 53 | |
| 54 | function readRegistryDeploymentConfig(env, options = {}) { |
| 55 | const rpcUrl = env.EDGE_RPC_URL; |
no outgoing calls
no test coverage detected