Skip to content

Commit

Permalink
microAlgo to Algo (#170)
Browse files Browse the repository at this point in the history
Co-authored-by: jay_sun <[email protected]>
  • Loading branch information
JeyDev310 and jay_sun authored Oct 14, 2021
1 parent a1858c1 commit 7881f8d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tatumio/tatum",
"version": "1.28.1",
"version": "1.28.2",
"description": "Tatum API client allows browsers and Node.js clients to interact with Tatum API.",
"main": "dist/src/index.js",
"repository": "https://github.com/tatumio/tatum-js",
Expand Down
4 changes: 2 additions & 2 deletions src/transaction/algo.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ describe('Algo transaction', () => {
const tx = new AlgoTransaction();
tx.from = 'TMETT6BXL3QUH7AH5TS6IONU7LVTLKIGG54CFCNPMQXWGRIZFIESZBYWP4';
tx.to = 'NTAESFCB3WOD7SAOL42KSPVARLB3JFA3MNX3AESWHYVT2RMYDVZI6YLG4Y';
tx.fee = '100';
tx.amount = '1000000';
tx.fee = '0.001';
tx.amount = '1';
tx.note = 'Helloworld';
tx.fromPrivateKey = '72TCV5BRQPBMSAFPYO3CPWVDBYWNGAYNMTW5QHENOMQF7I6QLNMJWCJZ7A3V5YKD7QD6ZZPEHG2PV2ZVVEDDO6BCRGXWIL3DIUMSUCI';
const txId = String(await sendAlgoSignedTransaction(true,tx, 'https://testnet-algorand.api.purestake.io/ps2'));
Expand Down
4 changes: 2 additions & 2 deletions src/transaction/algo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export const prepareAlgoSignedTransaction = async ( testnet: boolean, tx: AlgoTr
const txn = {
"from": tx.from,
"to": tx.to,
"fee": Number(tx.fee),
"amount": BigInt(tx.amount),
"fee": BigInt(Number(tx.fee) * 1000000),
"amount": BigInt(Number(tx.amount) * 1000000),
"firstRound": params.firstRound,
"lastRound": params.lastRound,
"genesisID": params.genesisID,
Expand Down

0 comments on commit 7881f8d

Please sign in to comment.