Skip to content

Commit 06a7bc7

Browse files
committed
changes
1 parent 59a6d59 commit 06a7bc7

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

.github/workflows/run_tests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ jobs:
88
test:
99
runs-on: ubuntu-latest
1010
services:
11+
pgsql:
12+
image: postgres:17
13+
env:
14+
POSTGRES_DB: postgres
15+
POSTGRES_PASSWORD: postgres
16+
ports:
17+
- 54332:5432
18+
1119
mysql:
1220
image: mysql:8
1321
env:
@@ -16,11 +24,13 @@ jobs:
1624
ports:
1725
- 33306:3306
1826
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
27+
1928
redis:
2029
image: redis:7
2130
ports:
2231
- 6379:6379
2332
options: --entrypoint redis-server
33+
2434
strategy:
2535
fail-fast: true
2636
matrix:
@@ -58,3 +68,4 @@ jobs:
5868
DB_HOST: 127.0.0.1
5969
DB_PORT: ${{ job.services.mysql.ports[3306] }}
6070
DB_DATABASE: platform
71+
INDEXER_DB_PORT: ${{ job.services.pgsql.ports[54332] }}

src/Models/Substrate/FuelTankRules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ abstract class FuelTankRules
1010
public function toKind(): array
1111
{
1212
return [
13-
str_replace('Params', '', (new \ReflectionClass($this))->getShortName()) => null,
13+
str_replace('Params', '', new \ReflectionClass($this)->getShortName()) => null,
1414
];
1515
}
1616
}

src/Models/Substrate/PermittedExtrinsicsParams.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,6 @@ protected function getEncodedData(string $mutationName): string
107107
->filter(fn ($class) => $class !== BatchTransferBalanceMutation::class)
108108
->filter(fn ($class) => Str::contains(class_basename($class), $mutationName))->first();
109109

110-
return HexConverter::unPrefix(TransactionSerializer::encode((new $transactionMutation())->getMethodName(), $transactionMutation::getEncodableParams()));
110+
return HexConverter::unPrefix(TransactionSerializer::encode(new $transactionMutation()->getMethodName(), $transactionMutation::getEncodableParams()));
111111
}
112112
}

src/Package.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static function getPackageClasses(): Collection
6666

6767
return preg_match($namespaceFilter, $className)
6868
&& class_exists($className)
69-
&& !(new \ReflectionClass($className))->isAbstract();
69+
&& !new \ReflectionClass($className)->isAbstract();
7070
});
7171
}
7272

tests/Feature/GraphQL/Traits/HasEncodeToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function updateTokenChainId(): string
5959
*/
6060
protected function newToken(): Token
6161
{
62-
$this->token = (new Token())->forceFill([
62+
$this->token = new Token()->forceFill([
6363
'collection_id' => $this->collection->id,
6464
'token_chain_id' => $this->getEncodedToken(),
6565
'supply' => (string) $supply = fake()->numberBetween(1),

0 commit comments

Comments
 (0)