Lesson 6(9:36:44) : Test passes on localhost but fails on testnet(Sepolia) #5221
mrtechnostart
started this conversation in
General
Replies: 1 comment 5 replies
-
When the string "5" is passed as the input parameter to store(), it is not converted to an unsigned integer, so the function is not able to store the correct value. To fix this error, you can change the input parameter of the store() function from a string to an unsigned integer. Here's an updated version of the test code with the input parameter changed to an unsigned integer:
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Smart Contract:
Lock.js
It passes on localhost but when I go for testnets(Sepolia) , Test 2 fails
Beta Was this translation helpful? Give feedback.
All reactions