Skip to content

Commit

Permalink
Keeping original mint token
Browse files Browse the repository at this point in the history
  • Loading branch information
chray-zhang committed Dec 2, 2024
1 parent 5cdeff6 commit 9865e8b
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions integration-tests/common/gauntlet_plus_plus_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ func (m *OCRv2TestState) fundNodesWithGPP() ([]string, error) {
}

func (m *OCRv2TestState) deployAccessControllerWithGpp() error {
var err error
err := m.Clients.GauntletClient.InstallDependencies()
if err != nil {
return err
}
err = m.Clients.GauntletPPClient.DeclareAccessControllerContract()
if err != nil {
return err
Expand Down Expand Up @@ -152,20 +155,21 @@ func (m *OCRv2TestState) DeployGauntletPP(minSubmissionValue int64, maxSubmissio
return err
}

// _, err = m.Clients.GauntletClient.MintLinkToken(m.Contracts.LinkTokenAddr, m.Contracts.OCRAddr, "100000000000000000000")
// if err != nil {
// return err
// }

// Gauntlet PP does not have a mint op. We will use devnet endpoint
_, err = m.TestConfig.Resty.R().SetBody(map[string]any{
"address": m.Contracts.LinkTokenAddr,
"amount": 100000000000000000,
}).Post("/mint")
_, err = m.Clients.GauntletClient.MintLinkToken(m.Contracts.LinkTokenAddr, m.Contracts.OCRAddr, "100000000000000000000")
if err != nil {
return err
}

// Gauntlet PP does not have a mint op. We will use devnet endpoint
// _, err = m.TestConfig.Resty.R().SetBody(map[string]any{
// "address": m.Contracts.OCRAddr,
// "amount": 100000000000000000,
// "unit": "LINK",
// }).Post("/mint")
// if err != nil {
// return err
// }

_, err = m.Clients.GauntletPPClient.SetOCRBilling(observationPaymentGjuels, transmissionPaymentGjuels, m.Contracts.OCRAddr)
if err != nil {
return err
Expand Down

0 comments on commit 9865e8b

Please sign in to comment.