diff --git a/src/runtime/executeReadonlyCall.ts b/src/runtime/executeReadonlyCall.ts index c4fe596..0277873 100644 --- a/src/runtime/executeReadonlyCall.ts +++ b/src/runtime/executeReadonlyCall.ts @@ -53,7 +53,7 @@ export const executeReadonlyCallFactory = ); const deployerAddress = - options.deployerAddress ?? factoryOptions.defaultSenderAddress; + options.deployerAddress ?? factoryOptions.deployerAddress; if (deployerAddress == null) { throw new Error(`[executeReadonlyCall] deployer address required`); } diff --git a/src/runtime/getMapEntry.ts b/src/runtime/getMapEntry.ts index 09e97f2..4967680 100644 --- a/src/runtime/getMapEntry.ts +++ b/src/runtime/getMapEntry.ts @@ -48,7 +48,8 @@ export const getMapEntryFactory = const clarityMapKey = descriptor.input.encode(mapKey); - const deployerAddress = options.deployerAddress; + const deployerAddress = + options.deployerAddress ?? factoryOptions.deployerAddress; if (deployerAddress == null) { throw new Error(`[getMapEntry] deployer address required`); }