From 7a1d438f841500b60bdb82dd0a96e9a6f77b6254 Mon Sep 17 00:00:00 2001 From: hailin Date: Mon, 2 Feb 2026 18:15:40 -0800 Subject: [PATCH] =?UTF-8?q?fix(mpc):=20=E5=8E=BB=E9=99=A4=20message=5Fhash?= =?UTF-8?q?=20=E7=9A=84=200x=20=E5=89=8D=E7=BC=80=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20MPC=20=E7=AD=BE=E5=90=8D=20400=20=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MPC account-service 期望纯 hex 格式的 message_hash,不接受 0x 前缀。 Co-Authored-By: Claude Opus 4.5 --- .../src/infrastructure/mpc/mpc-signing.client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/mining-blockchain-service/src/infrastructure/mpc/mpc-signing.client.ts b/backend/services/mining-blockchain-service/src/infrastructure/mpc/mpc-signing.client.ts index 9022a4d1..17a9d12d 100644 --- a/backend/services/mining-blockchain-service/src/infrastructure/mpc/mpc-signing.client.ts +++ b/backend/services/mining-blockchain-service/src/infrastructure/mpc/mpc-signing.client.ts @@ -224,7 +224,7 @@ export class MpcSigningClient { message_hash?: string; }>( createUrl, - { username, message_hash: messageHash }, + { username, message_hash: messageHash.startsWith('0x') ? messageHash.slice(2) : messageHash }, { headers, timeout: 30000 }, ), );