Skip to content

Commit

Permalink
[TX-Builder] Always show to field (#137)
Browse files Browse the repository at this point in the history
* Set TX-Builder v1.2.0
  • Loading branch information
Daniel Sanchez authored Jun 30, 2021
1 parent 442cfa9 commit d8adce7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/tx-builder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tx-builder",
"version": "1.1.0",
"version": "1.2.0",
"private": true,
"homepage": "./",
"dependencies": {
Expand Down
3 changes: 1 addition & 2 deletions apps/tx-builder/src/components/Builder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ export const Builder = ({ contract, to }: Props): ReactElement | null => {

{contract && !contract?.methods.length && <Text size="lg">Contract ABI doesn't have any public methods.</Text>}

{/* show `toInput` when `to` is not a valid address */}
{to.length > 0 && !isValidAddress(to) && (
{to.length > 0 && (
<StyledTextField
style={{ marginTop: 10 }}
value={toInput}
Expand Down

0 comments on commit d8adce7

Please sign in to comment.