Skip to content

Commit

Permalink
Handlers: TON: Emmet Hash: From hex format
Browse files Browse the repository at this point in the history
  • Loading branch information
imsk17 committed Jul 7, 2024
1 parent 47abf63 commit 4ea9683
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/chains/ton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,9 @@ export function tonHandler({
decimals: () => 9,
estimateTime: () => Promise.resolve(undefined),
async emmetHashFromtx(hash) {
const b64 = Buffer.from(hash, 'hex').toString('base64')
const txs = await client.getTransactions(bridge, {
hash,
hash: b64,
limit: 10,
});
for (const tx of txs) {
Expand Down

0 comments on commit 4ea9683

Please sign in to comment.