Skip to content

Commit e46b571

Browse files
committed
fix: swap error
1 parent ce36a23 commit e46b571

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/utils/swap.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export default async function swap(
3737
address: rawMessage.to,
3838
amount: rawMessage.value,
3939
stateInit: stateInit,
40-
payload: rawMessage.body?.toBoc().toString("base64"),
40+
payload: Cell.fromBoc(Buffer.from(rawMessage.body, "hex"))[0]
41+
.toBoc()
42+
.toString("base64"),
4143
},
4244
] satisfies SendTransactionRequest["messages"];
4345
tonconnect

0 commit comments

Comments
 (0)