From 7f06088161621e259a6a4ce84d3fa0174fd2ee88 Mon Sep 17 00:00:00 2001 From: cryptooda Date: Wed, 7 Jan 2026 20:55:22 +0700 Subject: [PATCH] Update callContract function to convert value to hexadecimal format - Modified the value parameter in the callContract function to convert numeric values to hexadecimal format, ensuring compatibility with contract calls. - This change enhances the handling of value inputs, improving the robustness of contract interactions. --- .../src/generated/gmxsdk/utils/callContract.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Managing.Web3Proxy/src/generated/gmxsdk/utils/callContract.ts b/src/Managing.Web3Proxy/src/generated/gmxsdk/utils/callContract.ts index 6b14ebd9..e9f1400a 100644 --- a/src/Managing.Web3Proxy/src/generated/gmxsdk/utils/callContract.ts +++ b/src/Managing.Web3Proxy/src/generated/gmxsdk/utils/callContract.ts @@ -248,7 +248,7 @@ export async function callContract( to: contractAddress, data: data, chain_id: sdk.chainId, - value: opts.value ? Number(opts.value) : undefined, + value: opts.value ? '0x' + BigInt(opts.value).toString(16) : undefined, gas_limit: Number(gasLimit) } },