From 8a6ee2b8436031bcf8a03c73a66a09032df6b5e7 Mon Sep 17 00:00:00 2001 From: David Date: Tue, 19 Mar 2024 13:56:44 +0800 Subject: [PATCH] tmp fix --- .github/workflows/docker.yml | 2 +- pkg/rpc/methods.go | 23 +++-------------------- 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 1b1491c56..db8207943 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -2,7 +2,7 @@ name: "Push docker image to GCR" on: push: - branches: [main] + branches: [main,bindings-private] tags: - "v*" diff --git a/pkg/rpc/methods.go b/pkg/rpc/methods.go index c16023e50..5c091a50c 100644 --- a/pkg/rpc/methods.go +++ b/pkg/rpc/methods.go @@ -240,41 +240,24 @@ func (c *Client) GetPoolContent( ctxWithTimeout, cancel := ctxWithTimeoutOrDefault(ctx, defaultTimeout) defer cancel() - l2Head, err := c.L2.HeaderByNumber(ctx, nil) - if err != nil { - return nil, err - } - - baseFeeInfo, err := c.TaikoL2.GetBasefee( - &bind.CallOpts{Context: ctx}, - uint64(time.Now().Unix())-l2Head.Time, - uint32(l2Head.GasUsed), - ) - if err != nil { - return nil, err - } - - log.Info("Current base fee", "fee", baseFeeInfo.Basefee) - var localsArg []string for _, local := range locals { localsArg = append(localsArg, local.Hex()) } var result []types.Transactions - err = c.L2.CallContext( + + return result, c.L2.CallContext( ctxWithTimeout, &result, "taiko_txPoolContent", beneficiary, - baseFeeInfo.Basefee, + 1, blockMaxGasLimit, maxBytesPerTxList, localsArg, maxTransactionsLists, ) - - return result, err } // L2AccountNonce fetches the nonce of the given L2 account at a specified height.