Skip to content

Commit

Permalink
pass oracle info for bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
iFrostizz committed Sep 2, 2024
1 parent 231d37b commit cd56a7d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/flows/import_price_feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions tests/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand All @@ -84,6 +87,9 @@ func DeployPriceFeedImporter(
subnet.RPCClient,
aggregatorBlockchainID,
aggregatorAddress,
decimals,
description,
version,
)
Expect(err).Should(BeNil())
teleporterUtils.WaitForTransactionSuccess(ctx, subnet, tx.Hash())
Expand Down

0 comments on commit cd56a7d

Please sign in to comment.