Skip to content

Commit

Permalink
chore: update go client errors (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanVerstraete authored Apr 27, 2023
1 parent f35e342 commit 0908148
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clients/tfchain-client-go/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ var smartContractModuleErrors = []string{
"NodeNotAuthorizedToComputeReport",
"PricingPolicyNotExists",
"ContractIsNotUnique",
"ContractWrongBillingLoopIndex",
"NameExists",
"NameNotValid",
"InvalidContractType",
Expand Down Expand Up @@ -96,6 +97,7 @@ var smartContractModuleErrors = []string{
"CanOnlyIncreaseFrequency",
"IsNotAnAuthority",
"WrongAuthority",
"UnauthorizedToChangeSolutionProviderId",
}

// https://github.com/threefoldtech/tfchain/blob/development/substrate-node/pallets/pallet-smart-contract/src/lib.rs#L321
Expand Down Expand Up @@ -131,6 +133,7 @@ var tfgridModuleErrors = []string{
"TwinWithPubkeyExists",
"CannotCreateTwin",
"UnauthorizedToUpdateTwin",
"TwinCannotBoundToItself",
"PricingPolicyExists",
"PricingPolicyNotExists",
"PricingPolicyWithDifferentIdExists",
Expand Down

0 comments on commit 0908148

Please sign in to comment.