Function profileFactionDataEquals

  • Checks if two instances of ProfileFactionData are equal.

    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>>>

      Data for first StakingVarsAccount

    • 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>>>

      Data for second StakingVarsAccount

    Returns boolean

    boolean

Generated using TypeDoc