From 82ecf65d34ac6a88b8bf525febad93ffbde7f2a3 Mon Sep 17 00:00:00 2001 From: renauter Date: Tue, 28 May 2024 13:54:54 -0300 Subject: [PATCH] keep old errors and add new one at the end --- clients/tfchain-client-go/utils.go | 4 +++- substrate-node/pallets/pallet-tfgrid/src/lib.rs | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/clients/tfchain-client-go/utils.go b/clients/tfchain-client-go/utils.go index f909908a7..af13735c6 100644 --- a/clients/tfchain-client-go/utils.go +++ b/clients/tfchain-client-go/utils.go @@ -215,7 +215,8 @@ var tfgridModuleErrors = []string{ "InvalidInterfaceIP", "InvalidZosVersion", "FarmingPolicyExpired", - "InvalidStorageInput", + "InvalidHRUInput", + "InvalidSRUInput", "InvalidCRUInput", "InvalidMRUInput", "LatitudeInputTooShort", @@ -245,6 +246,7 @@ var tfgridModuleErrors = []string{ "NodeHasActiveContracts", "InvalidRelayAddress", "InvalidTimestampHint", + "InvalidStorageInput", } // https://github.com/threefoldtech/tfchain/blob/development/substrate-node/pallets/pallet-tft-bridge/src/lib.rs#L152 diff --git a/substrate-node/pallets/pallet-tfgrid/src/lib.rs b/substrate-node/pallets/pallet-tfgrid/src/lib.rs index 40c58191a..55c032ef9 100644 --- a/substrate-node/pallets/pallet-tfgrid/src/lib.rs +++ b/substrate-node/pallets/pallet-tfgrid/src/lib.rs @@ -537,7 +537,8 @@ pub mod pallet { InvalidZosVersion, FarmingPolicyExpired, - InvalidStorageInput, + InvalidHRUInput, + InvalidSRUInput, InvalidCRUInput, InvalidMRUInput, @@ -571,6 +572,8 @@ pub mod pallet { NodeHasActiveContracts, InvalidRelayAddress, InvalidTimestampHint, + + InvalidStorageInput, } #[pallet::genesis_config]