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

chore: refactory #348

Merged
merged 4 commits into from
Dec 16, 2024
Merged

chore: refactory #348

merged 4 commits into from
Dec 16, 2024

Conversation

RafilxTenfen
Copy link
Contributor

@RafilxTenfen RafilxTenfen commented Dec 16, 2024

  • Move PrivateSigner to specific package
  • Created vars for constant used Mod accounts in appparams

@RafilxTenfen RafilxTenfen self-assigned this Dec 16, 2024
@RafilxTenfen RafilxTenfen requested a review from a team as a code owner December 16, 2024 00:29
@RafilxTenfen RafilxTenfen requested review from gitferry and KonradStaniec and removed request for a team December 16, 2024 00:29
Copy link
Member

@Lazar955 Lazar955 left a comment

Choose a reason for hiding this comment

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

lgtm

Comment on lines +17 to +23
nodeDir, err := os.MkdirTemp("", "tmp-signer")
if err != nil {
return nil, err
}
defer func() {
_ = os.RemoveAll(nodeDir)
}()
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
nodeDir, err := os.MkdirTemp("", "tmp-signer")
if err != nil {
return nil, err
}
defer func() {
_ = os.RemoveAll(nodeDir)
}()
nodeDir := t.TempDir()

Copy link
Member

Choose a reason for hiding this comment

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

t.TempDir() internally calls t.CleanUp, so a bit cleaner

Copy link
Contributor Author

Choose a reason for hiding this comment

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

problem is, I don't have the *testing.T there

@RafilxTenfen RafilxTenfen merged commit b3da9cb into main Dec 16, 2024
19 checks passed
@RafilxTenfen RafilxTenfen deleted the rafilx/refactory branch December 16, 2024 12:03
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