diff --git a/package.json b/package.json index 5570e3e..099acf2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cowprotocol/app-data", - "version": "1.0.0-rc.3", + "version": "1.0.0-rc.4", "description": "CowProtocol AppData schema definitions", "type": "module", "source": "src/index.ts", diff --git a/src/api/appDataToCid.ts b/src/api/appDataToCid.ts index 68055f9..25d29b9 100644 --- a/src/api/appDataToCid.ts +++ b/src/api/appDataToCid.ts @@ -98,9 +98,9 @@ export async function _appDataToCidAux( * @returns the IPFS CID v0 of the content */ async function _appDataToCid(fullAppDataJson: string): Promise { - const { utils } = await import('ethers') + const { keccak256, toUtf8Bytes } = await import('ethers/lib/utils') - const appDataHex = await utils.keccak256(utils.toUtf8Bytes(fullAppDataJson)) + const appDataHex = await keccak256(toUtf8Bytes(fullAppDataJson)) return appDataHexToCid(appDataHex) }