Skip to content

Point Memo clients to the v4 program (Memo4c2p…) - #418

Merged
lorisleiva merged 1 commit into
mainfrom
loris/memo-v4-address
Sep 15, 2026
Merged

lorisleiva merged 1 commit into
mainfrom
loris/memo-v4-address

Conversation

@lorisleiva

Copy link
Copy Markdown
Member

This PR updates the Memo IDL and clients to target the v4 program at Memo4c2pN8afCj432Lb7RMVKi9PbQnnW7ewFFaV3oAH, replacing the v3 address (MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr).

v4 is a pinocchio-based reimplementation that is wire-compatible with v3 (identical instruction layout and optional signers) but consumes roughly 95% fewer compute units. The repo's program/ folder already builds v4; this change brings the client-facing address in line with it. The public API of every client is unchanged, only the program address they target.

This PR updates the Memo IDL and clients to target the v4 program at `Memo4c2pN8afCj432Lb7RMVKi9PbQnnW7ewFFaV3oAH`, replacing the v3 address (`MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr`).

v4 is a `pinocchio`-based reimplementation that is wire-compatible with v3 (identical instruction layout and optional signers) but consumes roughly 95% fewer compute units. The repo's `program/` folder already builds v4; this change brings the client-facing address in line with it. The public API of every client is unchanged, only the program address they target.

@joncinque joncinque left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes! We might need to advertise this change to the users of the packages somehow, since memo v4 has a slightly different output format if I'm not mistaken.

People shouldn't rely on the log formatting, but who knows what's really happening in the wild.

@lorisleiva

Copy link
Copy Markdown
Member Author

I was thinking of doing a minor bump for @solana-program/memo since it's still under 0.x versioning but I'm not sure about the legacy JS client and the Rust client.

@lorisleiva
lorisleiva merged commit bb9635e into main Sep 15, 2026
54 of 55 checks passed
@joncinque

Copy link
Copy Markdown
Contributor

I was thinking of doing a minor bump for @solana-program/memo since it's still under 0.x versioning but I'm not sure about the legacy JS client and the Rust client.

It'll be safer to do a breaking release either way, so minor for the 0.x line, and major otherwise

@lorisleiva

Copy link
Copy Markdown
Member Author

Seems like all JS and Rust clients are under 0.x versioning so I'll do minor bumps all round. ☺️

@lorisleiva
lorisleiva deleted the loris/memo-v4-address branch September 15, 2026 13:56
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