From 4759194ba4eee799316f4bf10bc495b51abb74d5 Mon Sep 17 00:00:00 2001 From: Leonardo Custodio Date: Mon, 22 Jul 2024 13:24:50 -0300 Subject: [PATCH] [PLA-1907] Fixes Beam transactions (#88) --- composer.json | 8 ++++---- src/Commands/BatchProcess.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 7f0bc82..f2f3b37 100644 --- a/composer.json +++ b/composer.json @@ -19,13 +19,13 @@ } ], "require": { - "php": "^8.2", + "php": "^8.2|^8.3", "ext-bcmath": "*", "ext-json": "*", "ext-openssl": "*", "enjin/platform-core": "*", "phrity/websocket": "^1.0", - "rebing/graphql-laravel": "^9.2", + "rebing/graphql-laravel": "^9.0", "spatie/laravel-package-tools": "^1.0", "spatie/laravel-ray": "^1.0" }, @@ -72,8 +72,8 @@ "prefer-stable": true, "require-dev": { "dms/phpunit-arraysubset-asserts": "dev-master", - "laravel/pint": "^1.16", - "nunomaduro/collision": "^8.1", + "laravel/pint": "^1.0", + "nunomaduro/collision": "^8.0", "larastan/larastan": "^2.0", "orchestra/testbench": "^9.0", "phpstan/extension-installer": "^1.0", diff --git a/src/Commands/BatchProcess.php b/src/Commands/BatchProcess.php index 4f8b178..a641cb5 100644 --- a/src/Commands/BatchProcess.php +++ b/src/Commands/BatchProcess.php @@ -205,7 +205,7 @@ protected function processBatch(BeamType $type): int foreach ($params as $param) { $transaction = $this->transaction->store([ 'method' => $method, - 'encoded_data' => $this->serialize->encode($method, [ + 'encoded_data' => $this->serialize->encode(isRunningLatest() ? $method . 'V1010' : $method, [ 'collectionId' => $param['collectionId'], 'recipients' => $param['recipients'], ]),