Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keeds tron java script #6193

Open
Bboykeed opened this issue Feb 15, 2025 · 1 comment
Open

Keeds tron java script #6193

Bboykeed opened this issue Feb 15, 2025 · 1 comment

Comments

@Bboykeed
Copy link

Thanks for the reply, and what about if I fill active permission operations with '0000000000000000000000000000000000000000000000000000000000000000' ?

Which does not correspond to any proto.protocol.Transaction.Contract.ContractType

Can it be argued that now active permissions are useless because they cannot use any operation, and then the account will use only owner permissions?

`const activesPermission = [

    {

      type: 2,

      permission_name: 'empty',

      threshold: owners.length,

      operations: AccountOperationsEnum.ZeroOperation,

      keys: (() => {

        const ownersArray = [];

        for (let i = 0; i < owners.length; i++) {

          ownersArray.push({ weight: 1, address: tronWeb.address.toHex(owners[i]) });

        }

        return ownersArray;

      })(),

    },

  ];

  `







  Where  AccountOperationsEnum.ZeroOperation = 0000000000000000000000000000000000000000000000000000000000000000 

Originally posted by @DmytroShalaiev in #4944

@angrynurd
Copy link

hi,@Bboykeed

Do you have any questions regarding the response you post solely to issue-4944?
Per your description, I am not sure what is your point in this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants