File tree 4 files changed +6
-6
lines changed
examples/hellocontract/contract
4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ func Constructor() error {
49
49
50
50
caller , err := sdk .Caller ()
51
51
if err != nil {
52
- sdk .Abort (ferrors .USR_ILLEGAL_STATE , "unbale to get caller" )
52
+ sdk .Abort (ferrors .USR_ILLEGAL_STATE , "unable to get caller" )
53
53
}
54
54
55
55
if caller != 1 {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ func SaveState(state cbor.Marshaler) cid.Cid {
34
34
func Constructor (state cbor.Marshaler ) error {
35
35
caller , err := Caller ()
36
36
if err != nil {
37
- Abort (ferrors .USR_ILLEGAL_STATE , "unbale to get caller" )
37
+ Abort (ferrors .USR_ILLEGAL_STATE , "unable to get caller" )
38
38
}
39
39
40
40
if caller != 1 {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ pub fn check_tinygo_install() -> Result<()> {
11
11
Ok ( _) => Ok ( ( ) ) ,
12
12
Err ( e) => {
13
13
if let ErrorKind :: NotFound = e. kind ( ) {
14
- Err ( anyhow ! ( "unbale to found tinygo(fvm), please install this tool in https://github.com/ipfs-force-community/tinygo/releases" ) )
14
+ Err ( anyhow ! ( "unable to found tinygo(fvm), please install this tool in https://github.com/ipfs-force-community/tinygo/releases" ) )
15
15
} else {
16
16
Err ( anyhow ! ( "fvm-tinygo not install, please install err {}" , e) )
17
17
}
@@ -28,7 +28,7 @@ pub fn check_fvm_tool_install() -> Result<()> {
28
28
Ok ( _) => Ok ( ( ) ) ,
29
29
Err ( e) => {
30
30
if let ErrorKind :: NotFound = e. kind ( ) {
31
- Err ( anyhow ! ( "unbale to found go-fvm-sdk-tools(fvm), please install this tool in https://github.com/ipfs-force-community/go-fvm-sdk/releases" ) )
31
+ Err ( anyhow ! ( "unable to found go-fvm-sdk-tools(fvm), please install this tool in https://github.com/ipfs-force-community/go-fvm-sdk/releases" ) )
32
32
} else {
33
33
Err ( anyhow ! ( "check err {}" , e) )
34
34
}
@@ -56,7 +56,7 @@ pub fn check_go_install() -> Result<bool> {
56
56
}
57
57
Err ( e) => {
58
58
if let ErrorKind :: NotFound = e. kind ( ) {
59
- Err ( anyhow ! ( "unbale to found go-fvm-sdk-tools(fvm), please install this tool in https://go.dev/dl" ) )
59
+ Err ( anyhow ! ( "unable to found go-fvm-sdk-tools(fvm), please install this tool in https://go.dev/dl" ) )
60
60
} else {
61
61
Err ( anyhow ! ( "check err {}" , e) )
62
62
}
Original file line number Diff line number Diff line change @@ -512,7 +512,7 @@ trait TryString {
512
512
impl TryString for PathBuf {
513
513
fn try_to_string ( & self ) -> Result < String > {
514
514
self . to_str ( )
515
- . ok_or_else ( || anyhow ! ( "unbale to get string from pathbuf" ) )
515
+ . ok_or_else ( || anyhow ! ( "unable to get string from pathbuf" ) )
516
516
. map ( |v| v. to_string ( ) )
517
517
}
518
518
}
You can’t perform that action at this time.
0 commit comments