Skip to content

Commit 93a3422

Browse files
committed
clarify "contract" registration and deployment
1 parent a60dca4 commit 93a3422

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

in-progress/6973-refactor-base-contract-interaction.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ const addMainFunctionCall: TxExecutionRequestAdapter = (
456456
Define a helper somewhere as:
457457

458458
```ts
459-
const addClassRegistration = (
459+
const addContractClassRegistration = (
460460
builder: TxExecutionRequestBuilder, call: UserFunctionCall
461461
) => {
462462
if (!call.contractArtifact) {
@@ -494,7 +494,7 @@ Define a helper somewhere as
494494

495495
```ts
496496

497-
const addPublicDeployment = (
497+
const addPublicContractDeployment = (
498498
builder: TxExecutionRequestBuilder, call: UserFunctionCall
499499
) => {
500500
const { artifact, instance } = getCanonicalInstanceDeployer();
@@ -591,10 +591,10 @@ async getTxExecutionRequest(userRequest: UserRequest): Promise<TxExecutionReques
591591
for (const call of request.calls) {
592592
addMainFunctionCall(builder, call);
593593
if (call.deploymentOptions?.registerClass) {
594-
addClassRegistration(builder, call);
594+
addContractClassRegistration(builder, call);
595595
}
596596
if (call.deploymentOptions?.publicDeploy) {
597-
addPublicDeployment(builder, call);
597+
addPublicContractDeployment(builder, call);
598598
}
599599
// if the user is giving us an artifact,
600600
// allow the PXE to access it

0 commit comments

Comments
 (0)