Skip to content

Commit 3d46471

Browse files
authored
fix: remove the nonce from the ActorConfig type. (#1150)
Removes `nonce` that should not be used to configure the actor. The `CallConfig` should be used instead.
1 parent ec4c1d5 commit 3d46471

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## [Unreleased]
44

5+
- fix(agent): remove the `nonce` from the `ActorConfig` type. This field must be used through the `CallConfig` type instead.
6+
57
## [4.0.3] - 2025-09-16
68

79
- fix(identity): expose all the exported elements from the `ed25519` module.

packages/agent/src/actor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ export interface CallConfig {
5656
}
5757

5858
/**
59-
* Configuration that can be passed to customize the Actor behaviour.
59+
* Configuration that can be passed to customize the Actor behavior.
6060
*/
61-
export interface ActorConfig extends CallConfig {
61+
export interface ActorConfig extends Pick<CallConfig, 'agent' | 'effectiveCanisterId'> {
6262
/**
6363
* The Canister ID of this Actor. This is required for an Actor.
6464
*/

0 commit comments

Comments
 (0)