From cd56a7d728d9763237a9dcac3c89743229c81f2c Mon Sep 17 00:00:00 2001 From: Francois Hardrouyere Date: Mon, 2 Sep 2024 16:01:47 +0200 Subject: [PATCH] pass oracle info for bindings --- tests/flows/import_price_feed.go | 3 +++ tests/utils/utils.go | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/tests/flows/import_price_feed.go b/tests/flows/import_price_feed.go index 63dd49c..d8c1007 100644 --- a/tests/flows/import_price_feed.go +++ b/tests/flows/import_price_feed.go @@ -47,6 +47,9 @@ func ImportPriceFeed(network interfaces.Network) { subnetAInfo, cChainInfo.BlockchainID, mockPriceFeedAggegratorAddress, + 18, + "WarpETHUSDAggregator", + big.NewInt(1), ) // Update the Mock Price Feed contract on C-Chain diff --git a/tests/utils/utils.go b/tests/utils/utils.go index dc1b9fc..68411de 100644 --- a/tests/utils/utils.go +++ b/tests/utils/utils.go @@ -76,6 +76,9 @@ func DeployPriceFeedImporter( subnet interfaces.SubnetTestInfo, aggregatorBlockchainID ids.ID, aggregatorAddress common.Address, + decimals uint8, + description string, + version *big.Int, ) (common.Address, *pricefeedimporter.PriceFeedImporter) { opts, err := bind.NewKeyedTransactorWithChainID(senderKey, subnet.EVMChainID) Expect(err).Should(BeNil()) @@ -84,6 +87,9 @@ func DeployPriceFeedImporter( subnet.RPCClient, aggregatorBlockchainID, aggregatorAddress, + decimals, + description, + version, ) Expect(err).Should(BeNil()) teleporterUtils.WaitForTransactionSuccess(ctx, subnet, tx.Hash())