From a5166f0a19971fc778172ffb0fcd790afaf1592b Mon Sep 17 00:00:00 2001 From: "Rodrigo Q. Saramago" Date: Sat, 11 Feb 2023 17:16:03 +0100 Subject: [PATCH] gp2 external test workaround --- test/externalTests/common.sh | 3 +-- test/externalTests/gp2.sh | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/externalTests/common.sh b/test/externalTests/common.sh index b6a85c1e3..97d0a337e 100644 --- a/test/externalTests/common.sh +++ b/test/externalTests/common.sh @@ -235,8 +235,7 @@ function force_truffle_compiler_settings function name_hardhat_default_export { local config_file="$1" - - local import="import {HardhatUserConfig} from 'hardhat/types';" + local import="import {HardhatUserConfig} from 'hardhat/types/config';" local config="const config: HardhatUserConfig = {" sed -i "s|^\s*export\s*default\s*{|${import}\n${config}|g" "$config_file" echo "export default config;" >> "$config_file" diff --git a/test/externalTests/gp2.sh b/test/externalTests/gp2.sh index 9e9ee72af..120379478 100755 --- a/test/externalTests/gp2.sh +++ b/test/externalTests/gp2.sh @@ -76,6 +76,9 @@ function gp2_test # See https://github.com/cowprotocol/contracts/issues/32 yarn add @tenderly/hardhat-tenderly@1.1.6 + # Add missing sinon type definitions + yarn add @types/sinon + # Some dependencies come with pre-built artifacts. We want to build from scratch. rm -r node_modules/@gnosis.pm/safe-contracts/build/