Skip to content

Commit

Permalink
[PLA-2056] Fix InsertRuleSet mutation (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardocustodio authored Oct 25, 2024
1 parent eb22482 commit 34bd702
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/GraphQL/Mutations/InsertRuleSetMutation.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,9 @@ public function resolve(
SerializationServiceInterface $serializationService,
Substrate $blockchainService
) {
$method = isRunningLatest() ? $this->getMutationName() . 'V1010' : $this->getMutationName();
$dispatchRules = $blockchainService->getDispatchRulesParams($args['dispatchRules']);
$encodedData = $serializationService->encode(
$method,
$this->getMutationName(),
static::getEncodableParams(
tankId: $args['tankId'],
ruleSetId: $args['ruleSetId'],
Expand Down
3 changes: 1 addition & 2 deletions src/GraphQL/Mutations/RemoveAccountRuleDataMutation.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ public function resolve(
Closure $getSelectFields,
SerializationServiceInterface $serializationService
) {
$method = isRunningLatest() ? $this->getMutationName() . 'V1010' : $this->getMutationName();
$encodedData = $serializationService->encode($method, static::getEncodableParams(...$args));
$encodedData = $serializationService->encode($this->getMutationName(), static::getEncodableParams(...$args));

return Transaction::lazyLoadSelectFields(
DB::transaction(fn () => $this->storeTransaction($args, $encodedData)),
Expand Down

0 comments on commit 34bd702

Please sign in to comment.