Skip to content

Conversation

@acenolaza
Copy link

No description provided.

Copy link

@justinleapline justinleapline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! Here are a couple of things I suggest to change.

Solution:

```
var password = web3.eth.getStorageAt(instance, index);`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this tutorial is focused around Metamask, I don't think we need to reference other ways. May cause confusion.

Suggested change
var password = web3.eth.getStorageAt(instance, index);`

```
var password = web3.eth.getStorageAt(instance, index);`
// For Metamask use callback function
web3.eth.getStorageAt(instance.address, 1, (err,res)=>{password=res});

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may be an easier example.

Suggested change
web3.eth.getStorageAt(instance.address, 1, (err,res)=>{password=res});
web3.eth.getStorageAt(contract.address, 1, function(error, result) {password = web3.toAscii(result)})

We'll be able to finally see the key string to unlock the vault!

> "A very strong secret password :)"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To unlock the vault finally, run the following command:
`await contract.unlock(password)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants