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

Commit

Permalink
Merge pull request #483 from nervosnetwork/bump-1.6.0-rc1
Browse files Browse the repository at this point in the history
chore: bump v1.6.0-rc1
  • Loading branch information
RetricSu authored Aug 9, 2022
2 parents d4d6250 + cb06609 commit 94aaeac
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"eslint": "^8.5.0",
"prettier": "^2.2.1"
},
"version": "1.5.2-rc1",
"version": "1.6.0-rc1",
"author": "hupeng <bitrocks.hu@gmail.com>"
}
4 changes: 2 additions & 2 deletions packages/api-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@godwoken-web3/api-server",
"version": "1.5.2-rc1",
"version": "1.6.0-rc1",
"private": true,
"scripts": {
"start": "concurrently \"tsc -w\" \"nodemon ./bin/cluster\"",
Expand Down Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"@ckb-lumos/base": "0.18.0-rc6",
"@ckb-lumos/toolkit": "0.18.0-rc6",
"@godwoken-web3/godwoken": "1.5.2-rc1",
"@godwoken-web3/godwoken": "1.6.0-rc1",
"@newrelic/native-metrics": "^7.0.1",
"@sentry/node": "^6.11.0",
"blake2b": "2.1.3",
Expand Down
4 changes: 4 additions & 0 deletions packages/api-server/src/convert-tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ export async function parseRawTransactionData(
);

let cacheKeyAndValue: [string, string] | undefined;
// auto create account
if (fromId == null) {
const ethTxHash = calcEthTxHash(rlpEncoded);
const { balance, requiredBalance } = await checkBalance(
Expand All @@ -249,6 +250,9 @@ export async function parseRawTransactionData(
gasLimit,
gasPrice
);
logger.info(
`aca tx: action: send, address: ${fromEthAddress}, eth_tx_hash: ${ethTxHash}, balance: ${balance}, required_balance: ${requiredBalance}`
);
if (balance < requiredBalance) {
throw new Error(
`insufficient balance of ${fromEthAddress}, require ${requiredBalance}, got ${balance}`
Expand Down
6 changes: 6 additions & 0 deletions packages/api-server/src/methods/modules/eth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,9 @@ export class Eth {
tx,
fromAddress
);
logger.info(
`aca tx: action: getTransactionByHash, eth_tx_hash: ${ethTxHash}, is_tx_exist: ${isAcaTxExist}`
);
if (isAcaTxExist) {
const apiTransaction: EthTransaction =
polyjuiceRawTransactionToApiTransaction(
Expand Down Expand Up @@ -1484,6 +1487,9 @@ async function buildEthCallTx(

let serializedRegistryAddress: HexString | undefined;
if (fromId == null && fromAddress != null) {
logger.info(
`aca tx: action: call/estimateGas, from_address: ${fromAddress}`
);
const registryAddress: EthRegistryAddress = new EthRegistryAddress(
fromAddress
);
Expand Down
2 changes: 1 addition & 1 deletion packages/godwoken/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@godwoken-web3/godwoken",
"version": "1.5.2-rc1",
"version": "1.6.0-rc1",
"private": true,
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit 94aaeac

Please sign in to comment.