allow sending directly to a channel or content address ()

* allow sending directly to a channel or content address
This commit is contained in:
saltrafael 2021-05-20 16:30:40 -03:00 committed by GitHub
parent 200dc66763
commit 2852138c3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 340 additions and 90 deletions

View file

@ -1,14 +1,10 @@
// @flow
import { regexAddress } from 'lbry-redux';
type DraftTxValues = {
address: string,
// amount: number
};
export const validateSendTx = (formValues: DraftTxValues) => {
const { address } = formValues;
const errors = {};
export default function validateSendTx(address: string) {
const errors = {
address: '',
};
// All we need to check is if the address is valid
// If values are missing, users wont' be able to submit the form