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

Gauntlet Multisig - Reduce create proposal TX size #134

Merged
merged 2 commits into from
Jan 25, 2022

Conversation

RodrigoAD
Copy link
Member

No description provided.

NODE_URL=http://127.0.0.1:8899

PROGRAM_ID_MULTISIG=3X4UvrX9gTxSmNmXww53W5dM5fT1Nby246hKV8Mx9LuD
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove these local vars?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are constant always on local environment

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PROGRAM_IDs yes, but MULTISIG_ADDRESS is created anew each time, no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right. Removing those

@@ -0,0 +1,322 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard-add it here or let it be added along other programs and .so's during Gauntlet setup?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's have it here, in the future will be pulled from GH. But for development is useful

} catch (e) {
// known errors, defined in multisig contract. see serum_multisig.json
if (e.code >= 300 && e.code < 400) {
logger.error(e.msg)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removing this logging for known erros?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't doing anything. The program already logs this errors automatically

createProposalAcount = async (): Promise<PublicKey> => {
logger.log('Creating proposal account')
const proposal = Keypair.generate()
const txSize = 1300 // Space enough
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

@RodrigoAD RodrigoAD merged commit 9afb28c into develop Jan 25, 2022
@RodrigoAD RodrigoAD deleted the multisig-improve-proposal-creation branch January 25, 2022 16:01
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

Successfully merging this pull request may close these issues.

2 participants