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

fix: Rename Stellar assert auth macros for brevity #133

Closed
wants to merge 1 commit into from

Conversation

TanvirDeol
Copy link
Contributor

@TanvirDeol TanvirDeol commented Jan 13, 2025

@TanvirDeol TanvirDeol requested a review from a team as a code owner January 13, 2025 17:09
let call_result = $client
.mock_auths($crate::mock_auth!($caller, $client, $method, $($arg),*))
.$method($($arg),*);
paste! {
Copy link
Member

Choose a reason for hiding this comment

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

is there no way to do this without adding an external dependency?

let call_result = $client
.mock_auths($crate::mock_auth!($caller, $client, $method, $($arg),*))
.$method($($arg),*);
paste! {
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
paste! {
paste::paste! {

to avoid local imports everywhere it's used

@@ -13,6 +13,7 @@ crate-type = ["cdylib", "rlib"]
axelar-soroban-std = { workspace = true }
cfg-if = { workspace = true }
soroban-sdk = { workspace = true }
paste = { workspace = true }
Copy link
Member

Choose a reason for hiding this comment

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

this is only needed for tests so it should be under dev-dependencies

Copy link
Member

Choose a reason for hiding this comment

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

see https://www.conventionalcommits.org/en/v1.0.0/#summary for PR titles and available scopes

Also see previous commits for the pattern we use. This PR is a refactor: ... Also, use lower case for the first word

@@ -25,6 +25,7 @@ alloy-sol-types = { version = "0.8.14", default-features = false, features = [
] }
goldie = "0.5.0"
hex = { version = "0.4" }
paste = "1.0"

[workspace.lints.clippy]
Copy link
Member

Choose a reason for hiding this comment

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

gh actions are failing on the PR

@TanvirDeol TanvirDeol closed this Jan 14, 2025
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