Section 1 NFT
#117
-
@param the function selector of the first one you need to call
@param the abi encoded data... hint! Use chisel to figure out what to use here...
@param yourTwitterHandle - Your twitter handle. Can be a blank string.
function solveChallenge(bytes4 selectorOne, bytes memory inputData, string memory yourTwitterHandle) external {
(bool successOne, bytes memory responseDataOne) = i_helperContract.call(abi.encodeWithSelector(selectorOne));
if (!successOne || uint256(bytes32((responseDataOne))) != 1) {
revert S1__WrongSelector();
}
(bool successTwo, bytes memory responseDataTwo) = i_helperContract.call(inputData);
if (!successTwo || uint256(bytes32((responseDataTwo))) != 1) {
revert S1__WrongData();
}
_updateAndRewardSolver(yourTwitterHandle);
}
My doubt is for which function I should get the function selector. Thanks in Advance. ps: To understand how to get the solution is my motivation not just to get the NFT. |
Beta Was this translation helpful? Give feedback.
Answered by
allwin199
Feb 9, 2024
Replies: 1 comment 3 replies
-
Answered by "@equious.eth" in discord |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
allwin199
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Answered by "@equious.eth" in discord