Skip to content

Lesson 4: I get a TypeError: Type uint256 is not implicitly convertible to expected type contract AggregatorV3Interface. in my getVersion function #5017

Answered by 1-618
1-618 asked this question in Q&A
Discussion options

You must be logged in to vote

Figured it out, looks like I had AggregatorV3Interface(0x694AA1769357215DE4FAC081bf1f309aDC325306).version() where The .version() call should not have been there which messed with the types by not resolving it to a uint256 but rather leaving is as a contract type

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by alymurtazamemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant