fix: update deprecated ContractRollback to gl.UserError in docs#423
fix: update deprecated ContractRollback to gl.UserError in docs#423ygd58 wants to merge 1 commit into
Conversation
✅ Deploy Preview for genlayer-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR corrects the API documentation for ChangesVM expect_revert documentation correction
Possibly related PRs
Poem
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Updates deprecated API reference
ContractRollback (gl.rollback)to the currentgl.UserErrorin the genlayer-test documentation.Related Issue
Closes #346 (partial fix)
Changes
pages/api-references/genlayer-test/direct.md: replacedContractRollback (gl.rollback)withgl.UserErrorto reflect the current SDK APINotes
This is part of a broader cleanup of deprecated API names identified in issue #346.
Summary by CodeRabbit
expect_revertmethod to clarify the exception types caught during test validation.