Merge pull request #6356 from ConstantinKloecker/patch-1

[DOCS] Fixed code block display
This commit is contained in:
chriseth 2019-03-25 10:21:44 +01:00 committed by GitHub
commit 99ed3a6452
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,7 @@ In this tutorial, we will sign messages in the browser using `web3.js <https://g
as it provides a number of other security benefits. as it provides a number of other security benefits.
:: ::
/// Hashing first makes things easier /// Hashing first makes things easier
var hash = web3.utils.sha3("message to sign"); var hash = web3.utils.sha3("message to sign");
web3.eth.personal.sign(hash, web3.eth.defaultAccount, function () { console.log("Signed"); }); web3.eth.personal.sign(hash, web3.eth.defaultAccount, function () { console.log("Signed"); });