Skip to content
Discussion options

You must be logged in to vote

You will want to do something along the lines of:

  let deploy_tx = TransactionRequest::default()
        .with_create_params(greeter_bytecode, Vec::new(), Vec::new())?
        .with_paymaster_params(PaymasterParams {
            paymaster,
            paymaster_input: paymaster_input.clone(),
        });

Where paymaster is your deployed funded paymaster and paymaster_input for general flow:

let paymaster_input: Bytes = IPaymasterFlow::generalCall {
    input: Bytes::default(),
}
.abi_encode()
.into();

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@richardcatlin
Comment options

@dutterbutter
Comment options

Answer selected by dutterbutter
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
SDKs
Labels
sdk Questions for the SDKs
2 participants