We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97c8257 commit 4788a18Copy full SHA for 4788a18
packages/coins-sdk/src/actions/createCoin.ts
@@ -175,7 +175,10 @@ export async function createCoin({
175
176
// Sanity check that the call is for the correct factory contract
177
if (!isAddressEqual(createContentCall.to, coinFactoryAddressForChain)) {
178
- throw new Error("Creator coin is not supported for this SDK version");
+ const extractedFactoryAddress = '0x' + createContentCall.data.substring(34, 74);
179
+ if (!isAddressEqual(extractedFactoryAddress as Address, coinFactoryAddressForChain)) {
180
+ throw new Error("Creator coin is not supported for this SDK version");
181
+ }
182
}
183
184
// Sanity check to ensure no buy orders are sent with there parameters
0 commit comments