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

Commit

Permalink
approve both assignment and taiko l1
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Nov 21, 2023
1 parent 61c4fcf commit 9e763e0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion testutils/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,18 @@ func (s *ClientTestSuite) SetupTest() {
opts, err = bind.NewKeyedTransactorWithChainID(l1ProverPrivKey, rpcCli.L1ChainID)
s.Nil(err)

_, err = rpcCli.TaikoToken.Approve(opts, common.HexToAddress(os.Getenv("ASSIGNMENT_HOOK_ADDRESS")), proverBalance)
_, err = rpcCli.TaikoToken.Approve(
opts,
common.HexToAddress(os.Getenv("ASSIGNMENT_HOOK_ADDRESS")),
new(big.Int).Exp(big.NewInt(1_000_000_000), big.NewInt(18), nil),
)
s.Nil(err)

_, err = rpcCli.TaikoToken.Approve(
opts,
common.HexToAddress(os.Getenv("TAIKO_L1_ADDRESS")),
new(big.Int).Exp(big.NewInt(1_000_000_000), big.NewInt(18), nil),
)
s.Nil(err)

_, err = rpc.WaitReceipt(context.Background(), rpcCli.L1, tx)
Expand Down

0 comments on commit 9e763e0

Please sign in to comment.