Skip to content

Commit

Permalink
Merge pull request #45 from o1-labs/develop
Browse files Browse the repository at this point in the history
v0.2.1
  • Loading branch information
shimkiv authored Apr 24, 2024
2 parents 0ba43b3 + 0e47a96 commit e26c238
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ <h1 class="text-xl underline">{{header}}</h1>
<div class="text-gray-600 text-xs mt-0.5 pl-2.5">
<span class="underline">Memo</span><span>:</span>
<br />
<div>{{memoView}}</div>
<div>{{memo}}</div>
</div>
{{/memo}}
</td>
Expand Down Expand Up @@ -500,7 +500,7 @@ <h1 class="text-xl underline">{{header}}</h1>
<div class="text-gray-600 text-xs mt-0.5 pl-2.5">
<span class="underline">Memo</span><span>:</span>
<br />
<span>{{memoView}}</span>
<span>{{zkappCommand.memo}}</span>
</div>
{{/zkappCommand.memo}}
</td>
Expand Down
12 changes: 1 addition & 11 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,11 +646,6 @@
hashView: function () {
return ellipsify(this.hash);
},
memoView: function () {
return this
? this.replace(RegExp(String.fromCharCode(28), "g"), "")
: "";
},
feePayerView: function () {
return ellipsify(this.feePayer.publicKey);
},
Expand Down Expand Up @@ -680,11 +675,6 @@
hashView: function () {
return ellipsify(this.hash);
},
memoView: function () {
return this
? this.replace(RegExp(String.fromCharCode(28), "g"), "")
: "";
},
feePayerView: function () {
return ellipsify(this.zkappCommand.feePayer.body.publicKey);
},
Expand Down Expand Up @@ -1173,7 +1163,7 @@
const decodedString = new TextDecoder().decode(
decodedMessage.slice(2, decodedMessage.length - 4)
);
return decodedString.replace(nullValueRegex, "");
return decodedString.replace(controlCharsRegExp, "");
}

function updateBlocksWithFailedTxnMark(blocks) {
Expand Down
4 changes: 2 additions & 2 deletions js/constants.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Update application version for every new release
const applicationVersion = "v0.2.0";
const applicationVersion = "v0.2.1";

const timeZoneOffset = new Date().getTimezoneOffset() * 60000;
const minaTokenId = "wSHV2S4qX9jFsLjQo8r1BsMLH2ZRKsZx6EJd1sbozGPieEC4Jf";
const base58Alphabet =
"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";
const nullValueRegex = /\0[\s\S]*$/g;
const controlCharsRegExp = /[\x00-\x1F\x7F]/g;
const themes = [
"light",
"dark",
Expand Down

0 comments on commit e26c238

Please sign in to comment.