From 9865e8bc74d2e9aaf950d5dffe3701e06cde0d77 Mon Sep 17 00:00:00 2001 From: chray-zhang Date: Mon, 2 Dec 2024 18:43:47 -0500 Subject: [PATCH] Keeping original mint token --- .../common/gauntlet_plus_plus_common.go | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/integration-tests/common/gauntlet_plus_plus_common.go b/integration-tests/common/gauntlet_plus_plus_common.go index f0c992c7..94e076ba 100644 --- a/integration-tests/common/gauntlet_plus_plus_common.go +++ b/integration-tests/common/gauntlet_plus_plus_common.go @@ -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 @@ -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