(txHash: string)
| 58 | }; |
| 59 | |
| 60 | export function isValidTransactionHash(txHash: string): boolean { |
| 61 | // A valid transaction hash is a hex string of length 66 characters (including the '0x' prefix) |
| 62 | const isValidLength = txHash.length === 66; |
| 63 | return isValidLength && isHexString(txHash); |
| 64 | } |
| 65 | |
| 66 | export function generateShareTwitterURL(text, referer, via = "levelupweb3") { |
| 67 | return `https://twitter.com/intent/tweet?original_referer=${encodeURIComponent(referer)}&text=${encodeURIComponent(text)}`; |
nothing calls this directly
no outgoing calls
no test coverage detected