Function profileFactionDataEquals
- profileFactionDataEquals(playerFaction1, playerFaction2): boolean
-
Parameters
-
playerFaction1: AnchorTypeDef<{
docs: ["Stores a profile's enlisted faction on-chain."];
name: "profileFactionAccount";
type: {
fields: [{
docs: ["The data version of this account."];
name: "version";
type: "u8";
}, {
docs: ["The profile this faction enlistment is for."];
name: "profile";
type: "publicKey";
}, {
docs: ["The faction of the profile."];
name: "faction";
type: "u8";
}, {
docs: ["The bump for this account."];
name: "bump";
type: "u8";
}];
kind: "struct";
};
} & {
name: "profileFactionAccount";
}, AnchorDefined<ProfileFactionIDL, Record<string, never>>>
-
playerFaction2: AnchorTypeDef<{
docs: ["Stores a profile's enlisted faction on-chain."];
name: "profileFactionAccount";
type: {
fields: [{
docs: ["The data version of this account."];
name: "version";
type: "u8";
}, {
docs: ["The profile this faction enlistment is for."];
name: "profile";
type: "publicKey";
}, {
docs: ["The faction of the profile."];
name: "faction";
type: "u8";
}, {
docs: ["The bump for this account."];
name: "bump";
type: "u8";
}];
kind: "struct";
};
} & {
name: "profileFactionAccount";
}, AnchorDefined<ProfileFactionIDL, Record<string, never>>>
Returns boolean
boolean
Checks if two instances of
ProfileFactionData
are equal.