Skip to content

Commit

Permalink
fix: create/update seller - force clerk to be AddressZero whatever th…
Browse files Browse the repository at this point in the history
…e passed arguments
  • Loading branch information
levalleux-ludo committed Feb 20, 2024
1 parent 4daf1c3 commit c2fe8d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/core-sdk/src/accounts/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ function argsToSellerStruct(args: {
// we need to set some arbitrary values.
id: "0",
active: true,
clerk: AddressZero,
...args
...args,
clerk: AddressZero // force clerk to be AddressZero (since protocol v2.1.0)
};
}

Expand All @@ -226,11 +226,11 @@ function createDisputeResolverArgsToDisputeResolverStruct(
// we need to set some arbitrary values.
id: "0",
active: true,
clerk: AddressZero,
...args,
escalationResponsePeriod: utils.timestamp.msToSec(
args.escalationResponsePeriodInMS
)
),
clerk: AddressZero // force clerk to be AddressZero (since protocol v2.1.0)
};
}

Expand Down

0 comments on commit c2fe8d2

Please sign in to comment.