diff --git a/packages/snap/snap.manifest.json b/packages/snap/snap.manifest.json index e5a85fd..069cd8f 100644 --- a/packages/snap/snap.manifest.json +++ b/packages/snap/snap.manifest.json @@ -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", diff --git a/packages/snap/src/utils/aptos/TransferCoin.ts b/packages/snap/src/utils/aptos/TransferCoin.ts index b7f4bb9..0622f44 100644 --- a/packages/snap/src/utils/aptos/TransferCoin.ts +++ b/packages/snap/src/utils/aptos/TransferCoin.ts @@ -1,3 +1,4 @@ +/* eslint-disable */ import getAccount from './GetAccount'; const HOST = 'http://localhost:5500'; @@ -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; } diff --git a/server/src/privateKeyTxn.ts b/server/src/privateKeyTxn.ts index 525a52f..cb09c5f 100644 --- a/server/src/privateKeyTxn.ts +++ b/server/src/privateKeyTxn.ts @@ -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 });