Skip to content

Commit

Permalink
Fix mint
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaptoss committed Sep 17, 2024
1 parent a60069c commit 55e08b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/config/rarimarket.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type rarimarketConfig struct {
type RarimarketConfig struct {
RPC *ethclient.Client
AccountFactory common.Address
PointTokens common.Address
ChainID *big.Int
PointPrice int64

Expand Down Expand Up @@ -81,6 +82,7 @@ func (c *rarimarketConfig) RarimarketConfig() *RarimarketConfig {
return &RarimarketConfig{
RPC: cfg.RPC,
AccountFactory: cfg.AccountFactory,
PointTokens: cfg.PointTokens,
ChainID: chainID,
PointPrice: cfg.PointPrice,

Expand Down Expand Up @@ -156,7 +158,7 @@ func (r *RarimarketConfig) Mint(ctx context.Context, account common.Address, amo
return fmt.Errorf("failed to get keyed transactor: %w", err)
}

pointTokensInstance, err := pointTokens.NewPoints(r.AccountFactory, r.RPC)
pointTokensInstance, err := pointTokens.NewPoints(r.PointTokens, r.RPC)
if err != nil {
return fmt.Errorf("failed to get account factory: %w", err)
}
Expand Down

0 comments on commit 55e08b4

Please sign in to comment.