Skip to content

Commit deef970

Browse files
committed
adjust workaround to new path
1 parent 6b53d00 commit deef970

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/sdk-core/tasks/build-types.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ cp -r ../ethereum-contracts/typechain-types ./src/typechain-types
1818
# Remove the Address export from typechain-types to avoid conflict with mappedSubgraphTypes
1919
# OpenZeppelin v5 added a custom error to Address library, giving it a non-empty ABI
2020
# This causes typechain to generate types for it, but it's not needed for the SDK
21-
sed -i '/export type { Address } from ".\/@openzeppelin\/contracts\/utils\/Address";/d' ./src/typechain-types/index.ts
22-
sed -i '/export { Address__factory } from ".\/factories\/@openzeppelin\/contracts\/utils\/Address__factory";/d' ./src/typechain-types/index.ts
21+
sed -i '/export type { Address } from ".\/@openzeppelin-v5\/contracts\/utils\/Address";/d' ./src/typechain-types/index.ts
22+
sed -i '/export { Address__factory } from ".\/factories\/@openzeppelin-v5\/contracts\/utils\/Address__factory";/d' ./src/typechain-types/index.ts
2323

2424
# compile the typechain files in sdk-core
2525
tsc -p tsconfig.typechain.json

0 commit comments

Comments
 (0)