Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Commit

Permalink
remove the test balance set
Browse files Browse the repository at this point in the history
  • Loading branch information
RetricSu committed Jun 30, 2021
1 parent 6d4adbe commit 0e0600d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/api-server/src/methods/modules/eth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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);
}

Expand Down

0 comments on commit 0e0600d

Please sign in to comment.