Skip to content

Commit

Permalink
Merge pull request #3 from KELs7/main
Browse files Browse the repository at this point in the history
fix: substr is deprecated use substring instead
  • Loading branch information
crosschainer authored Jul 8, 2024
2 parents 11fb020 + c179fe3 commit 266d3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dapp-esm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ const XianWalletUtils = {
hexToString: function(hex) {
let bytes = [];
for (let i = 0; i < hex.length; i += 2) {
bytes.push(parseInt(hex.substr(i, 2), 16));
bytes.push(parseInt(hex.substring(i, 2), 16));
}
return String.fromCharCode.apply(String, bytes);
},
Expand Down

0 comments on commit 266d3c2

Please sign in to comment.