Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
tmp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidtaikocha committed Mar 19, 2024
1 parent f900061 commit 8a6ee2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Push docker image to GCR"

on:
push:
branches: [main]
branches: [main,bindings-private]
tags:
- "v*"

Expand Down
23 changes: 3 additions & 20 deletions pkg/rpc/methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8a6ee2b

Please sign in to comment.