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

[R4R]: gas-oracle hsm sign support #55

Merged
merged 2 commits into from
Dec 5, 2023
Merged

Conversation

HXHke
Copy link
Contributor

@HXHke HXHke commented Dec 5, 2023

Core changes:

  • add hsm signature in gas-oracle

Copy link

github-actions bot commented Dec 5, 2023

Ran 109 test suites: 531 tests passed😊, 0 failed😂, 0 skipped (531 total tests)

Tri-stone
Tri-stone previously approved these changes Dec 5, 2023
Copy link
Contributor

@Tri-stone Tri-stone left a comment

Choose a reason for hiding this comment

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

LGTM

// log.Crit("gasoracle", "create signer error", err.Error())
// return nil, err
//}
seqBytes, err := hex.DecodeString(cfg.HsmCreden)
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing err handler

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

opts, err = mk.NewEthereumTransactorWithChainID(context.Background(), cfg.l2ChainID)
if err != nil {
log.Crit("gasoracle", "create signer error", err.Error())
return nil, err
Copy link
Contributor

Choose a reason for hiding this comment

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

func Crit(msg string, ctx ...interface{}) {
	root.write(msg, LvlCrit, ctx, skipLevel)
	os.Exit(1)
}

log.Crit will abort the current program. return doesn't make sense here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

deleted

Copy link

github-actions bot commented Dec 5, 2023

Ran 109 test suites: 531 tests passed😊, 0 failed😂, 0 skipped (531 total tests)

@HXHke HXHke merged commit 102e7f8 into develop Dec 5, 2023
1 of 2 checks passed
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.

None yet

3 participants