Skip to content
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

EIP-1559 from contract #542

Closed
JamesSmith2 opened this issue Sep 11, 2021 · 1 comment
Closed

EIP-1559 from contract #542

JamesSmith2 opened this issue Sep 11, 2021 · 1 comment

Comments

@JamesSmith2
Copy link

JamesSmith2 commented Sep 11, 2021

Hello,

Trying to create a signed_call_with_confirmations from contract, but still get legacy tx. (Using latest git version).
What i'm missing here? TX type is set U64: 2

`
contract.signed_call_with_confirmations(

                        &data.contract_field,
                        (U256::from_dec_str(&data.contract_amount).unwrap(),),
                        Options {
                            transaction_type: Some(transaction_type),
                            access_list: None,
                            gas_price: None,
                            // gas_price: Some(conversion::get_conversion_value(
                            //     &format!("{}", gas_price),
                            //     "ether",
                            //     "gwei",
                            // )),
                            max_fee_per_gas: Some(conversion::get_conversion_value(
                                &format!("{}", gas_price),
                                "ether",
                                "gwei",
                            )),
                            max_priority_fee_per_gas: Some(conversion::get_conversion_value(
                                &format!("{}", gas_price),
                                "ether",
                                "gwei",
                            )),
                            gas: Some(conversion::get_conversion_value(
                                &format!("{}", gas),
                                "gwei",
                                "gwei",
                            )),
                            value: Some(conversion::get_conversion_value(
                                &data.contract_buy,
                                "ether",
                                "wei",
                            )),
                            condition: None,
                            nonce: Some(transaction_id),
                        },
                        1,
                        &prvk,
                    )
                    .await`
@JamesSmith2
Copy link
Author

Ok got it working, missing parameters in mod.rs file.

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

No branches or pull requests

1 participant