hexToBase64 converts a hex string to base64 (for protojson bytes encoding)
(hexStr string)
| 326 | |
| 327 | // hexToBase64 converts a hex string to base64 (for protojson bytes encoding) |
| 328 | func hexToBase64(hexStr string) string { |
| 329 | bytes, _ := hex.DecodeString(hexStr) |
| 330 | return base64.StdEncoding.EncodeToString(bytes) |
| 331 | } |
| 332 | |
| 333 | // sendFaucetTx sends a faucet transaction using raw JSON |
| 334 | func sendFaucetTx(rpcURL string, signerKey *keyGroup, recipientAddr string, amount, fee, networkID, chainID, height uint64) (string, error) { |
no outgoing calls
no test coverage detected