From 0e0600ddb390bb453569d77bd1a51a5d86f55498 Mon Sep 17 00:00:00 2001 From: retricsu Date: Wed, 30 Jun 2021 15:48:47 +0200 Subject: [PATCH] remove the test balance set --- packages/api-server/src/methods/modules/eth.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/api-server/src/methods/modules/eth.ts b/packages/api-server/src/methods/modules/eth.ts index 8f5822a0..5a746762 100644 --- a/packages/api-server/src/methods/modules/eth.ts +++ b/packages/api-server/src/methods/modules/eth.ts @@ -292,7 +292,6 @@ export class Eth { // TODO: second arguments async getBalance(args: [string, string], callback: Callback) { - console.log('get_balance'); const address = args[0]; const short_address = await allTypeEthAddressToShortAddress( this.rpc, @@ -303,7 +302,7 @@ export class Eth { short_address, toHexNumber(CKB_SUDT_ID) ); - const balanceHex = '0x' + (BigInt(balance) * BigInt(10 ** 8)).toString(16); + const balanceHex = '0x' + BigInt(balance).toString(16); callback(null, balanceHex); }