diff --git a/clients/tfchain-client-go/utils.go b/clients/tfchain-client-go/utils.go index 1151a489d..f909908a7 100644 --- a/clients/tfchain-client-go/utils.go +++ b/clients/tfchain-client-go/utils.go @@ -215,8 +215,7 @@ var tfgridModuleErrors = []string{ "InvalidInterfaceIP", "InvalidZosVersion", "FarmingPolicyExpired", - "InvalidHRUInput", - "InvalidSRUInput", + "InvalidStorageInput", "InvalidCRUInput", "InvalidMRUInput", "LatitudeInputTooShort", diff --git a/substrate-node/pallets/pallet-tfgrid/src/lib.rs b/substrate-node/pallets/pallet-tfgrid/src/lib.rs index 1fea9fcca..40c58191a 100644 --- a/substrate-node/pallets/pallet-tfgrid/src/lib.rs +++ b/substrate-node/pallets/pallet-tfgrid/src/lib.rs @@ -537,8 +537,7 @@ pub mod pallet { InvalidZosVersion, FarmingPolicyExpired, - InvalidHRUInput, - InvalidSRUInput, + InvalidStorageInput, InvalidCRUInput, InvalidMRUInput, diff --git a/substrate-node/pallets/pallet-tfgrid/src/node.rs b/substrate-node/pallets/pallet-tfgrid/src/node.rs index 2a219319b..caf4e369f 100644 --- a/substrate-node/pallets/pallet-tfgrid/src/node.rs +++ b/substrate-node/pallets/pallet-tfgrid/src/node.rs @@ -392,8 +392,7 @@ impl Pallet { fn get_resources( resources: pallet::ResourcesInput, ) -> Result { - ensure!(resources.validate_hru(), Error::::InvalidHRUInput); - ensure!(resources.validate_sru(), Error::::InvalidSRUInput); + ensure!(resources.validate_storage(), Error::::InvalidStorageInput); ensure!(resources.validate_cru(), Error::::InvalidCRUInput); ensure!(resources.validate_mru(), Error::::InvalidMRUInput);