You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- Reference any GitHub issues resolved by this PR -->
Closes#3254
## Introduced changes
<!-- A brief description of the changes -->
-
## 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`
letmut 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();
89
+
letmut message = format!(
90
+
"Account successfully created but it needs to be deployed. The estimated deployment fee is {} STRK. Prefund the account to cover deployment transaction fee",
add_profile: --add-profile flag was not set. No profile added to snfoundry.toml
52
52
address: 0x0[..]
53
-
max_fee: [..]
54
-
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.
53
+
estimated_fee: [..]
54
+
message: Account successfully created but it needs to be deployed. The estimated deployment fee is [..]
add_profile: --add-profile flag was not set. No profile added to snfoundry.toml
663
663
address: 0x0[..]
664
-
max_fee: [..]
665
-
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.
664
+
estimated_fee: [..]
665
+
message: Account successfully created but it needs to be deployed. The estimated deployment fee is [..]
add_profile: --add-profile flag was not set. No profile added to snfoundry.toml
697
697
address: 0x0[..]
698
-
max_fee: [..]
699
-
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.
700
-
701
-
After prefunding the address, run:
698
+
estimated_fee: [..]
699
+
message: Account successfully created but it needs to be deployed. The estimated deployment fee is [..]
let tempdir = tempdir().expect("Failed to create a temporary directory");
871
+
872
+
let args = vec!["account","create","--url",URL];
873
+
874
+
let snapbox = runner(&args).current_dir(tempdir.path());
875
+
let output = snapbox.assert().success();
876
+
877
+
assert_stdout_contains(
878
+
output,
879
+
"message: Account successfully created but it needs to be deployed. The estimated deployment fee is 0.000836288000000000 STRK. Prefund the account to cover deployment transaction fee",
Copy file name to clipboardExpand all lines: docs/src/development/shell-snippets.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,10 @@ $ sncast \
21
21
```shell
22
22
command: account create
23
23
add_profile: --add-profile flag was not set. No profile added to snfoundry.toml
24
-
address: [..]
25
-
max_fee: [..]
26
-
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.
27
-
24
+
address: 0x0[..]
25
+
estimated_fee: [..]
26
+
message: Account successfully created but it needs to be deployed. The estimated deployment fee is [..]
Copy file name to clipboardExpand all lines: docs/src/starknet/101.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,11 +21,11 @@ $ sncast account create \
21
21
```shell
22
22
command: account create
23
23
add_profile: --add-profile flag was not set. No profile added to snfoundry.toml
24
-
address: 0x[..]
25
-
max_fee: [..]
26
-
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.
24
+
address: 0x0[..]
25
+
estimated_fee: [..]
26
+
message: Account successfully created but it needs to be deployed. The estimated deployment fee is [..]
Copy file name to clipboardExpand all lines: docs/src/starknet/account.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,9 +37,9 @@ $ sncast \
37
37
```shell
38
38
command: account create
39
39
add_profile: --add-profile flag was not set. No profile added to snfoundry.toml
40
-
address: [..]
41
-
max_fee: [..]
42
-
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.
40
+
address: 0x0[..]
41
+
estimated_fee: [..]
42
+
message: Account successfully created but it needs to be deployed. The estimated deployment fee is [..]
0 commit comments