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

En 12302 cosigned set guardian #4119

Merged
merged 5 commits into from
Jun 21, 2022

Conversation

AdoAdoAdo
Copy link
Contributor

No description provided.

@AdoAdoAdo AdoAdoAdo marked this pull request as ready for review May 26, 2022 16:20
@@ -66,6 +70,7 @@
# it is a good idea to increase the maximum number of opened files allowed by the operating system
FullArchiveNumActivePersisters = 10


Copy link
Contributor

Choose a reason for hiding this comment

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

remove extra line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done on #4159

return agc.saveAccountGuardians(accHandler, accountGuardians)
}

// TODO: add constraints on not co-signed txs on interceptor, for setGuardian
Copy link
Contributor

Choose a reason for hiding this comment

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

task for TODO?

Also, question: is there a check as to not send value on a setGuardian transaction call? (in builtin function implementation)

Copy link
Contributor Author

@AdoAdoAdo AdoAdoAdo May 27, 2022

Choose a reason for hiding this comment

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

Created a task: [EN-12365] for the TODO.

the check is for all related builtin functions: SetGuardian, FreezeAccount & UnfreezeAccount

The check is already done on checkBaseAccountFreezerArgs for all related builtin functions

        if !isZero(vmInput.CallValue) {
		return ErrBuiltInFunctionCalledWithValue
	}

@AdoAdoAdo AdoAdoAdo merged commit 6ca2e45 into feat/freeze-account Jun 21, 2022
@AdoAdoAdo AdoAdoAdo deleted the EN-12302-cosigned-set-guardian branch June 21, 2022 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants