Skip to content

Commit

Permalink
chore: restoring comment and adjusting property
Browse files Browse the repository at this point in the history
  • Loading branch information
wainola committed Apr 24, 2024
1 parent f7d4a35 commit 145dfb9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/widget/src/components/address-input/address-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ export class AddressInput extends BaseComponent {
@property({ attribute: false })
onAddressChange: (address: string) => void = () => {};

@property({
type: String
})
@property({ attribute: false })
networkType: Network = Network.EVM;

@state()
Expand All @@ -48,6 +46,7 @@ export class AddressInput extends BaseComponent {
}

this.errorMessage = validateAddress(trimedValue, this.networkType);

this.onAddressChange(trimedValue);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ export class FungibleTokenTransferController implements ReactiveController {
if (this.destinationAddress === '') {
return FungibleTransferState.MISSING_DESTINATION_ADDRESS;
}

// Enabled States
if (
!this.walletContext.value?.evmWallet &&
!this.walletContext.value?.substrateWallet
Expand Down

0 comments on commit 145dfb9

Please sign in to comment.