gp2 external test workaround

This commit is contained in:
Rodrigo Q. Saramago 2023-02-11 17:16:03 +01:00
parent 59f9ab4dee
commit a5166f0a19
No known key found for this signature in database
GPG Key ID: 9B36B2525704A359
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/