Ethernaut Level0 — Tutorial

contract.info()
> await contract.info()
‘You will find what you need in info1().’
>await contract.info1()
'Try info2(), but with "hello" as a parameter.'
> await contract.info2('hello')
'The property infoNum holds the number of the next info method to call.'
(await contract.infoNum()).toString()
'42'
await contract.info42()
'theMethodName is the name of the next method.'
await contract.theMethodName()
'The method name is method7123949.'
await contract.method7123949()
'If you know the password, submit it to authenticate().'
> contract
// skipped for brevity
password: ƒ ()
// more methods
await contract.password()
'ethernaut0'
await contract.authenticate('ethernaut0')
e4e9b69aea3571538dca60595571493ed3b7d30d.js:1 ⛏️ Sent transaction ⛏ https://rinkeby.etherscan.io/tx/0xfa2190e9ce6fdf28bc3616a54b4836fdf67c1032d0b391193d22741a7fc7f22d
e4e9b69aea3571538dca60595571493ed3b7d30d.js:1 ⛏️ Mined transaction ⛏

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store