Skip to content

Accept address as String instead of Address #748

@luizstacio

Description

@luizstacio

When using;

  • BaseWalletLocked.<transfer|buildPredicateTransaction |submitPredicate>
  • Provider.<getCoins|getResourcesToSpend|getBalance|getBalances|getMessages|buildSpendPredicate|submitSpendPredicate>
  • BaseTransactionRequest.<updateWitnessByOwner>

These methods require the Application to instantiate an Address object before executing the methods, as bech32 and hex are both strings and can be differentiated by string evaluation. All the methods should be able also to receive a string. Making address param type from AbstractAddress to something likestring | AbstractAddress. And use Address.fromDynamicInput internally for the correctness of the data.

Metadata

Metadata

Assignees

Labels

featIssue is a feature

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions