Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #384 from PureStake/master
Browse files Browse the repository at this point in the history
Patch 1.8.2
  • Loading branch information
Jan Marcano authored Mar 23, 2022
2 parents e9904d7 + 8adaef2 commit 883d1a7
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 10 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ This update is focused around rekey and changes to accommodate it. Both normal a
- Transactions with rekeyed accounts now accepted
- Reference accounts can now be imported with public key only

### Patch 1.8.2

Fix for Ledger transactions created in the UI with transfer amounts set to 0.

### Patch 1.8.1

UI Improvements for rekey transactions and reference accounts.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "algosigner",
"version": "1.8.1",
"version": "1.8.2",
"author": "https://developer.purestake.io",
"description": "Sign Algorand transactions in your browser with PureStake.",
"repository": "https://github.com/PureStake/algosigner",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@algosigner/common",
"version": "1.8.1",
"version": "1.8.2",
"author": "https://developer.purestake.io",
"description": "Common library functions for AlgoSigner.",
"repository": "https://github.com/PureStake/algosigner",
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "algosigner-crypto",
"version": "1.8.1",
"version": "1.8.2",
"author": "https://developer.purestake.io",
"description": "Cryptographic wrapper for saving and retrieving extention information in Algosigner.",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/dapp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@algosigner/dapp",
"version": "1.8.1",
"version": "1.8.2",
"author": "https://developer.purestake.io",
"repository": "https://github.com/PureStake/algosigner",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "AlgoSigner",
"author": "https://developer.purestake.io",
"version": "1.8.1",
"version": "1.8.2",
"description": "Algorand Wallet Extension | Send & Receive ALGOs | Sign dApp Transactions",
"icons": {
"48": "icon.png"
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "algosigner-extension",
"version": "1.8.1",
"version": "1.8.2",
"author": "https://developer.purestake.io",
"repository": "https://github.com/PureStake/algosigner",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/storage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "algosigner-storage",
"version": "1.8.1",
"version": "1.8.2",
"author": "https://developer.purestake.io",
"repository": "https://github.com/PureStake/algosigner",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/test-project/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "algorand-test-project",
"version": "1.8.1",
"version": "1.8.2",
"repository": "https://github.com/PureStake/algosigner",
"license": "MIT",
"description": "Repository for tests",
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "algosigner-ui",
"version": "1.8.1",
"version": "1.8.2",
"author": "https://developer.purestake.io",
"repository": "https://github.com/PureStake/algosigner",
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,18 @@ const getAllAddresses = async (): Promise<LedgerActionResponse> => {
function cleanseBuildEncodeUnsignedTransaction(transaction: any): any {
// If there's no dApp structure, we're coming from the UI
if (!transaction.encodedTxn && !transaction.groupsToSign) {
const builtTx = new Transaction(removeEmptyFields(transaction.transaction));
const removedFieldsTxn = removeEmptyFields(transaction.transaction);

// Explicit conversion of amount. Ledger transactions are stringified and retrieved,
// which converts the amount to a string. Moving to int/bigint here.
if ('amount' in removedFieldsTxn) {
removedFieldsTxn['amount'] = BigInt(removedFieldsTxn['amount'])
if (removedFieldsTxn['amount'] <= Number.MAX_SAFE_INTEGER){
removedFieldsTxn['amount'] = parseInt(removedFieldsTxn['amount'])
}
}

const builtTx = new Transaction(removedFieldsTxn);
const byteTxn = algosdk.encodeUnsignedTransaction(builtTx);

return { transaction: byteTxn, error: '' };
Expand Down

0 comments on commit 883d1a7

Please sign in to comment.