Skip to content

Commit

Permalink
[WIP]L2->L1 import fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shepf committed Aug 13, 2024
1 parent 9b0cddb commit 6fe0e50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cairo/cairo.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"github.com/yu-org/yu/utils/log"
"itachi/cairo/adapters"
"itachi/cairo/config"
"itachi/cairo/l1"
"itachi/cairo/l1/contract"

snos_ouput "itachi/cairo/snos-ouput"
"math/big"
"net/http"
Expand Down Expand Up @@ -111,7 +111,7 @@ func (c *Cairo) FinalizeBlock(block *Block) {

func (c *Cairo) ethCallUpdateState(cairoState *CairoState, snOsOutput *snos_ouput.StarknetOsOutput) {

ethClient, err := l1.NewEthClient(c.cfg.EthClientAddress)
ethClient, err := NewEthClient(c.cfg.EthClientAddress)
if err != nil {
logrus.Errorf("init ethClient failed: %s", err)
}
Expand Down Expand Up @@ -139,7 +139,7 @@ func (c *Cairo) ethCallUpdateState(cairoState *CairoState, snOsOutput *snos_oupu
privateKeyHex := c.cfg.EthPrivateKey
address := c.cfg.EthClientAddress
gasLimit := c.cfg.GasLimit
auth, err := l1.CreateAuth(ethClient, privateKeyHex, address, gasLimit, chainID)
auth, err := CreateAuth(ethClient, privateKeyHex, address, gasLimit, chainID)
if err != nil {
logrus.Errorf("create auth failed: %s", err)
return
Expand Down
2 changes: 1 addition & 1 deletion cairo/l1/eth_send.go → cairo/eth_send.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package l1
package cairo

import (
"context"
Expand Down

0 comments on commit 6fe0e50

Please sign in to comment.