-
Notifications
You must be signed in to change notification settings - Fork 4.6k
fix: update method name and fix test timeout issue #24757
fix: update method name and fix test timeout issue #24757
Conversation
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.
What did you think about @t-nelson's feedback that this method belongs on belongs on Message
Connection
and should take a Message
as input?
Rust SDK: https://docs.rs/solana-client/latest/solana_client/rpc_client/struct.RpcClient.html#method.get_fee_for_message
JSON API: https://docs.solana.com/developing/clients/jsonrpc-api#getfeeformessage
@@ -490,7 +490,7 @@ export class Transaction { | |||
/** | |||
* Get the estimated fee associated with a transaction | |||
*/ | |||
async getEstimatedFee(connection: Connection): Promise<number> { | |||
async getFeeForMessage(connection: Connection): Promise<number> { |
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.
Because this is live, we have little choice but to support the old name for a while, deprecated. If you landed this PR, anyone calling getEstimatedFee
would find their software no longer compiles with TypeScript (at best) or works in production (at worst).
Rename it, but also create a new method with the old name, that just calls straight through to the one with the new name.
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.
Okay, will do!
nice save 😉 |
Hey, at least I owned up to it. 🤣 |
Pull request has been modified.
133e01b
to
7889487
Compare
4510f95
to
a3c8304
Compare
I can't seem to resolve the |
446732b
to
e47c6a9
Compare
Fixed with #25210 |
Problem
Summary of Changes
Fixes #
#24730