From 9ddc0141b65cb55f483619a7122c18ee3f068529 Mon Sep 17 00:00:00 2001 From: Sri Kidambi <1702865+kidambisrinivas@users.noreply.github.com> Date: Tue, 6 Feb 2024 22:45:47 +0530 Subject: [PATCH 1/2] Minor changes (#11943) --- .../vrfv2plus/testnet/v2plusscripts/super_scripts.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/scripts/vrfv2plus/testnet/v2plusscripts/super_scripts.go b/core/scripts/vrfv2plus/testnet/v2plusscripts/super_scripts.go index 9f7b708228d..9c1ddd840d4 100644 --- a/core/scripts/vrfv2plus/testnet/v2plusscripts/super_scripts.go +++ b/core/scripts/vrfv2plus/testnet/v2plusscripts/super_scripts.go @@ -715,11 +715,10 @@ func VRFV2PlusDeployUniverse(e helpers.Environment, formattedVrfV2PlusPrimaryJobSpec := fmt.Sprintf( jobs.VRFV2PlusJobFormatted, - contractAddresses.CoordinatorAddress, //coordinatorAddress - contractAddresses.BatchCoordinatorAddress, //batchCoordinatorAddress - coordinatorJobSpecConfig.BatchFulfillmentEnabled, //batchFulfillmentEnabled - coordinatorJobSpecConfig.BatchFulfillmentGasMultiplier, //batchFulfillmentGasMultiplier - strings.Join(util.MapToAddressArr(nodesMap[model.VRFPrimaryNodeName].SendingKeys), "\",\""), //fromAddresses + contractAddresses.CoordinatorAddress, //coordinatorAddress + contractAddresses.BatchCoordinatorAddress, //batchCoordinatorAddress + coordinatorJobSpecConfig.BatchFulfillmentEnabled, //batchFulfillmentEnabled + coordinatorJobSpecConfig.BatchFulfillmentGasMultiplier, //batchFulfillmentGasMultiplier compressedPkHex, //publicKey coordinatorConfig.MinConfs, //minIncomingConfirmations e.ChainID, //evmChainID From 4cb966909d0eed7820dda86b07ef66d19b7b5ad8 Mon Sep 17 00:00:00 2001 From: Jordan Krage Date: Tue, 6 Feb 2024 17:13:04 -0600 Subject: [PATCH 2/2] core/chains/evm/assets: FuzzWei skip large exponents (#11948) --- core/chains/evm/assets/wei_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/core/chains/evm/assets/wei_test.go b/core/chains/evm/assets/wei_test.go index 2f083c266b9..adbab27d84b 100644 --- a/core/chains/evm/assets/wei_test.go +++ b/core/chains/evm/assets/wei_test.go @@ -1,6 +1,8 @@ package assets import ( + "strconv" + "strings" "testing" "github.com/stretchr/testify/assert" @@ -74,6 +76,9 @@ func FuzzWei(f *testing.F) { if len(v) > 1_000 { t.Skip() } + if tryParseExp(v) > 4888888 { + t.Skip() + } var w Wei err := w.UnmarshalText([]byte(v)) if err != nil { @@ -89,3 +94,15 @@ func FuzzWei(f *testing.F) { require.Equal(t, w, w2, "unequal values after marshal/unmarshal") }) } + +func tryParseExp(v string) int64 { + i := strings.IndexAny(v, "Ee") + if i == -1 { + return -1 + } + e, err := strconv.ParseInt(v[i+1:], 10, 32) + if err != nil { + return -1 + } + return e +}