-
Notifications
You must be signed in to change notification settings - Fork 45
Breaking changes: cleanup and minor improvements prior release (step 1) #190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ge not recommended).
…y of our signing providers).
… deploy transaction - not applicable when using our signing providers, anyway).
…t in walletcore).
src/smartcontracts/interface.ts
Outdated
| * Gets the address of the Smart Contract. | ||
| */ | ||
| getAddress(): Address; | ||
| getAddress(): IBech32Address; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q - why do we have IBech32 as opposed to an interface for the address?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was named this way in order to avoid an eventual ambiguity. That is, IBech32Address only has the bech32() method, without pubkey() and hex(), thus being a bit more "portable" between different domains (e.g. walletcore, network-providers and so on) - some of which don't know how to encode / decode an address.
We can change this, though. IAddress?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed to IAddress.
305ba50
axiosandfsanymore. Changed the way anAbiRegistryis created. Removed functionCode.fromFile()(was relying onfs).boundaryAdapters(simplification).smartContract.getOwner()(surprising behavior of function, usage not recommended).ErrTransactionNotSigned).transaction.awaitHashed()(lacks use-case).transaction.awaitSigned()(it isn't useful in relation with any of our signing providers).ISignableis not needed in erdjs, but in walletcore).contract.code,contract.codeMetadata.interaction.getContract(). Addinteraction.getContractAddress().IResultsParser.Code.nothing().