Skip to content

Lesson 4: Remix Fund Me project library PriceConverter.sol #507

Discussion options

You must be logged in to vote

@kloudplanet This is the pattern with the help of we can use Libraries in our contract, and why do we choose uint256? Is because we are using the Library's methods that are returning uint256, if the Library returns multiple types of values like string, array, uint256, etc. Then you will have to define this line for every type you want to use in your contract.

Hope it clears your query.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by kloudplanet
Comment options

You must be logged in to vote
1 reply
@alymurtazamemon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants