You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/rs-drive-abci/src/execution/validation/state_transition/state_transitions/batch/action_validation/token/token_transfer_transition_action/state_v0/mod.rs
+21-1Lines changed: 21 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
use dpp::block::block_info::BlockInfo;
2
2
use dpp::consensus::ConsensusError;
3
3
use dpp::consensus::state::state_error::StateError;
4
-
use dpp::consensus::state::token::{IdentityDoesNotHaveEnoughTokenBalanceError,IdentityTokenAccountFrozenError,TokenIsPausedError};
4
+
use dpp::consensus::state::token::{IdentityDoesNotHaveEnoughTokenBalanceError,IdentityTokenAccountFrozenError,TokenIsPausedError,TokenTransferRecipientIdentityNotExistError};
5
5
use dpp::prelude::Identifier;
6
6
use dpp::tokens::info::v0::IdentityTokenInfoV0Accessors;
7
7
use dpp::tokens::status::v0::TokenStatusV0Accessors;
@@ -45,6 +45,7 @@ impl TokenTransferTransitionActionStateValidationV0 for TokenTransferTransitionA
45
45
transaction,
46
46
platform_version,
47
47
)?;
48
+
48
49
if !validation_result.is_valid(){
49
50
returnOk(validation_result);
50
51
}
@@ -59,7 +60,9 @@ impl TokenTransferTransitionActionStateValidationV0 for TokenTransferTransitionA
Copy file name to clipboardExpand all lines: packages/wasm-dpp/src/errors/consensus/consensus_error.rs
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ use dpp::consensus::state::identity::no_transfer_key_for_core_withdrawal_availab
84
84
use dpp::consensus::state::identity::RecipientIdentityDoesNotExistError;
85
85
use dpp::consensus::state::prefunded_specialized_balances::prefunded_specialized_balance_insufficient_error::PrefundedSpecializedBalanceInsufficientError;
86
86
use dpp::consensus::state::prefunded_specialized_balances::prefunded_specialized_balance_not_found_error::PrefundedSpecializedBalanceNotFoundError;
87
-
use dpp::consensus::state::token::{IdentityDoesNotHaveEnoughTokenBalanceError,IdentityTokenAccountNotFrozenError,IdentityTokenAccountFrozenError,TokenIsPausedError,IdentityTokenAccountAlreadyFrozenError,UnauthorizedTokenActionError,TokenSettingMaxSupplyToLessThanCurrentSupplyError,TokenMintPastMaxSupplyError,NewTokensDestinationIdentityDoesNotExistError,NewAuthorizedActionTakerIdentityDoesNotExistError,NewAuthorizedActionTakerGroupDoesNotExistError,NewAuthorizedActionTakerMainGroupNotSetError,InvalidGroupPositionError,TokenAlreadyPausedError,TokenNotPausedError,InvalidTokenClaimPropertyMismatch,InvalidTokenClaimNoCurrentRewards,InvalidTokenClaimWrongClaimant};
87
+
use dpp::consensus::state::token::{IdentityDoesNotHaveEnoughTokenBalanceError,IdentityTokenAccountNotFrozenError,IdentityTokenAccountFrozenError,TokenIsPausedError,IdentityTokenAccountAlreadyFrozenError,UnauthorizedTokenActionError,TokenSettingMaxSupplyToLessThanCurrentSupplyError,TokenMintPastMaxSupplyError,NewTokensDestinationIdentityDoesNotExistError,NewAuthorizedActionTakerIdentityDoesNotExistError,NewAuthorizedActionTakerGroupDoesNotExistError,NewAuthorizedActionTakerMainGroupNotSetError,InvalidGroupPositionError,TokenAlreadyPausedError,TokenNotPausedError,InvalidTokenClaimPropertyMismatch,InvalidTokenClaimNoCurrentRewards,InvalidTokenClaimWrongClaimant,TokenTransferRecipientIdentityNotExistError};
88
88
use dpp::consensus::state::voting::masternode_incorrect_voter_identity_id_error::MasternodeIncorrectVoterIdentityIdError;
89
89
use dpp::consensus::state::voting::masternode_incorrect_voting_address_error::MasternodeIncorrectVotingAddressError;
90
90
use dpp::consensus::state::voting::masternode_not_found_error::MasternodeNotFoundError;
0 commit comments