mirror of
https://github.com/alexgo-io/clarity-codegen.git
synced 2026-01-12 22:22:01 +08:00
fix: factory option deployerAddress not working for executeReadonlyCall and getMapEntry
This commit is contained in:
@@ -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`);
|
||||
}
|
||||
|
||||
@@ -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`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user