-
Notifications
You must be signed in to change notification settings - Fork 200
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
Remove --version
and --fee-token
flags
#2865
base: master
Are you sure you want to change the base?
Conversation
1b76089
to
3a3e168
Compare
3a3e168
to
996952d
Compare
… omitted (#2888) <!-- Reference any GitHub issues resolved by this PR --> Closes # ## Introduced changes <!-- A brief description of the changes --> This came up from #2865 Conversion from `ScriptFeeSettings` to `FeeSettings` resulted in value for `max_fee` being dropped completely. This conversion was only in cast script "deploy" function. If deploy was used with Strk token, any value passed to `max_fee` was completely ignored. Removed the conversion entirely and used correct structure in deploy. ## Checklist <!-- Make sure all of these are complete --> - [x] Linked relevant issue - [x] Updated relevant documentation - [x] Added relevant tests - [x] Performed self-review of the code - [x] Added changes to `CHANGELOG.md`
996952d
to
180dc68
Compare
@@ -85,7 +85,7 @@ pub async fn create( | |||
.context("Invalid address")? | |||
.parse()?; | |||
|
|||
let mut message = "Account successfully created. Prefund generated address with at least <max_fee> STRK tokens or an equivalent amount of ETH tokens. It is good to send more in the case of higher demand.".to_string(); | |||
let mut message = "Account successfully created. Prefund generated address with at least <max_fee> STRK tokens. It is good to send more in the case of higher demand.".to_string(); |
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.
let mut message = "Account successfully created. Prefund generated address with at least <max_fee> STRK tokens. It is good to send more in the case of higher demand.".to_string(); | |
let mut message = format!("Account successfully created. Prefund generated address with at least {max_fee} STRK tokens. It is good to send more in case of higher demand."); |
And actually we should either replace STRK
with FRI
in the message or divide this value by 10^18
. It could also be renamed to estimated_fee
or something like that.
@@ -390,6 +390,7 @@ async fn test_run_script_twice_with_state_file_enabled() { | |||
} | |||
|
|||
#[tokio::test] | |||
// #[ignore] |
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.
// #[ignore] |
@@ -537,6 +537,7 @@ pub fn assert_tx_entry_failed( | |||
status: ScriptTransactionStatus, | |||
msg_contains: Vec<&str>, | |||
) { | |||
dbg!(&tx_entry); |
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.
dbg!(&tx_entry); |
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.
Closes #2856
Introduced changes
--version
and--fee-token
flags in sncastChecklist
CHANGELOG.md