Commit 857d335
fix: revert Number() removal - TronWeb TypeScript requires number type
CodeRabbit was incorrect about sendTrx accepting strings.
TronWeb's TypeScript definition requires number for amount parameter:
sendTrx(to: string, amount?: number, from?: string)
While implementation accepts strings internally, the type definition
enforces number, causing TS2345 error.
Kept the important fix: using args.from instead of vault for sender.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent d1f14a2 commit 857d335
File tree
1 file changed
+1
-1
lines changed- packages/swapper/src/thorchain-utils/tron
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments