Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Kartikay <[email protected]>
  • Loading branch information
kartikaysaxena committed Dec 9, 2023
1 parent 5f64d9c commit 0307df8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/MetaMask/template-snap-monorepo.git"
},
"source": {
"shasum": "IwWICh9k43vlhxKk0PcHSir/2By9kuirksdl08ad1VQ=",
"shasum": "SpK6VSJwbSDeuUdACondUqHxulb5HltCI63F5Ha89uQ=",
"location": {
"npm": {
"filePath": "dist/bundle.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/snap/src/utils/aptos/TransferCoin.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
import getAccount from './GetAccount';

const HOST = 'http://localhost:5500';
Expand All @@ -20,6 +21,6 @@ export default async function transferCoin(
'Content-Type': 'application/json',
},
body: JSON.stringify({ pk, recipient: to, amount }),
}).then((res) => res.json());
}).then(async (res) => res.json());
return txHash.tx;
}
2 changes: 1 addition & 1 deletion server/src/privateKeyTxn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function privateKeyTxn(request: Request) {
const key = 'key';
console.log({ pk, recipient, amount });
const decryptedKey: string = decryptPhrase(pk, key);
console.log('Encrypted Text:', decryptedKey);
console.log('Decrypted Text:', decryptedKey);

const privateKey = new Ed25519PrivateKey(decryptedKey);
const account = Account.fromPrivateKey({ privateKey });
Expand Down

0 comments on commit 0307df8

Please sign in to comment.