Skip to content

Commit

Permalink
Create removeTxPadding.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwheels authored Apr 8, 2020
1 parent 40dde23 commit e9fd0d6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions public/removeTxPadding.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
function removeTxPadding(input){
var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
var lkey = keyStr.indexOf(input.charAt(input.length - 1));
if(lkey == 64){
return input.substring(0,input.length - 1);
}
return input;
}

0 comments on commit e9fd0d6

Please sign in to comment.