Merge pull request #13961 from ethereum/fix-external-test-gp2

gp2 external test workaround
This commit is contained in:
Daniel 2023-02-13 21:36:36 +01:00 committed by GitHub
commit 7cd589eee4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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"

View File

@ -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/