Skip to content

Fix direct execute calldata parsing (#9)#60

Open
tarrencev wants to merge 1 commit intoavnu-labs:mainfrom
cartridge-gg:avnumain
Open

Fix direct execute calldata parsing (#9)#60
tarrencev wants to merge 1 commit intoavnu-labs:mainfrom
cartridge-gg:avnumain

Conversation

@tarrencev
Copy link
Contributor

@tarrencev tarrencev commented Jan 21, 2026

Support Cartridge Controller Execute From Outside schema

* Add version-agnostic raw execute endpoint (#2)

* ✨ add version-agnostic raw execute endpoint

Add paymaster_executeRawTransaction RPC method that accepts pre-built
execute_from_outside calls, making the paymaster agnostic to SNIP-9 versions.

* 🎨 fix formatting

* ci: disable codecov failure blocking

* test: add tests for execute_raw endpoint

* Fix duplicate raw execute imports

* Use DirectInvoke and dynamic calls parsing

* Sync execute_direct endpoint formatting

* Simplify direct execute fee estimation
@vercel
Copy link

vercel bot commented Jan 21, 2026

@tarrencev is attempting to deploy a commit to the 419labs Team on Vercel.

A member of the Team first needs to authorize it.

@codecov
Copy link

codecov bot commented Jan 21, 2026

Codecov Report

❌ Patch coverage is 93.10345% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...rates/paymaster-execution/src/execution/execute.rs 93.10% 6 Missing ⚠️

📢 Thoughts on this report? Let us know!

if last_call.calldata.len() != 3 {
return Err(Error::InvalidTypedData);
let calldata = &self.execute_from_outside_call.calldata;
for calls_len_index in [4usize, 5] {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you could refactor this to make it more Rust-idiomatic

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