-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
let call_result = $client | ||
.mock_auths($crate::mock_auth!($caller, $client, $method, $($arg),*)) | ||
.$method($($arg),*); | ||
paste! { |
There was a problem hiding this comment.
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! { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 } |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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
AXE-7063