Skip to content

Commit

Permalink
- updated " encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
anonymoussprocket committed Sep 27, 2020
1 parent b7d6f02 commit 9044b06
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ TBD
<html>
<head>
<script src="https://cdn.jsdelivr.net/gh/cryptonomic/conseiljs/dist-web/conseiljs.min.js"
integrity="sha384-kPKX+a7S2j+lKDOu8UkBJz70XAbsNJykIKFr3YVTTdf7rpg/LU0wPoMBDGTLMCpn"
integrity="sha384-DsZ98An5RJlEquKpG7VziukP7Zqae8IlsF9VmTnz41Ga8FvAx6Hvn0hMkpBj3pms"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/gh/cryptonomic/conseiljs-softsigner/dist-web/conseiljs-softsigner.min.js"
integrity="sha384-V1iaajn0x/SMFcZ9Y/xNQmqQSKyll6Dzt27U6OWiv8NdbHTVaHOGHdQ8g0G68HPd"
Expand Down
2 changes: 1 addition & 1 deletion dist-web/conseiljs.min.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Unlike the nodejs sample, it's not possible to configure fetch or logger referen
<html>
<head>
<script src="https://cdn.jsdelivr.net/gh/cryptonomic/conseiljs/dist-web/conseiljs.min.js"
integrity="sha384-kPKX+a7S2j+lKDOu8UkBJz70XAbsNJykIKFr3YVTTdf7rpg/LU0wPoMBDGTLMCpn"
integrity="sha384-DsZ98An5RJlEquKpG7VziukP7Zqae8IlsF9VmTnz41Ga8FvAx6Hvn0hMkpBj3pms"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/gh/cryptonomic/conseiljs-softsigner/dist-web/conseiljs-softsigner.min.js"
crossorigin="anonymous"></script>
Expand Down Expand Up @@ -123,8 +123,8 @@ const faucetAccount = {

async function initAccount() {
const keyStore = await KeyStoreUtils.restoreIdentityFromFundraiser(faucetAccount.mnemonic.join(' '), faucetAccount.email, faucetAccount.password, faucetAccount.pkh);
console.log(`public key: ${keystore.publicKey}`);
console.log(`secret key: ${keystore.secretKey}`);
console.log(`public key: ${keyStore.publicKey}`);
console.log(`secret key: ${keyStore.secretKey}`);
}

initAccount();
Expand All @@ -146,8 +146,8 @@ const faucetAccount = {

async function initAccount() {
const keyStore = await conseiljssoftsigner.KeyStoreUtils.restoreIdentityFromFundraiser(faucetAccount.mnemonic.join(' '), faucetAccount.email, faucetAccount.password, faucetAccount.pkh);
console.log(`public key: ${keystore.publicKey}`);
console.log(`secret key: ${keystore.secretKey}`);
console.log(`public key: ${keyStore.publicKey}`);
console.log(`secret key: ${keyStore.secretKey}`);
}

initAccount();
Expand Down
1 change: 1 addition & 0 deletions grammar/tezos/Micheline.ne
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const staticStringToHex = d => {
const prefix = '01';
let text = d[6].toString();
text = text.substring(1, text.length - 1); // strip double quotes
text = text.replace(/\\"/g, '"');
const len = encodeLength(text.length);

text = text.split('').map(c => c.charCodeAt(0).toString(16)).join('');
Expand Down
1 change: 1 addition & 0 deletions src/chain/tezos/lexer/Micheline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const staticStringToHex = d => {
const prefix = '01';
let text = d[6].toString();
text = text.substring(1, text.length - 1); // strip double quotes
text = text.replace(/\\"/g, '"');
const len = encodeLength(text.length);

text = text.split('').map(c => c.charCodeAt(0).toString(16)).join('');
Expand Down

0 comments on commit 9044b06

Please sign in to comment.