Skip to content

Commit cbf0095

Browse files
committed
fix:fix typo
1 parent a517496 commit cbf0095

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

examples/hellocontract/contract/helloworld.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func Constructor() error {
4949

5050
caller, err := sdk.Caller()
5151
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")
5353
}
5454

5555
if caller != 1 {

sdk/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func SaveState(state cbor.Marshaler) cid.Cid {
3434
func Constructor(state cbor.Marshaler) error {
3535
caller, err := Caller()
3636
if err != nil {
37-
Abort(ferrors.USR_ILLEGAL_STATE, "unbale to get caller")
37+
Abort(ferrors.USR_ILLEGAL_STATE, "unable to get caller")
3838
}
3939

4040
if caller != 1 {

tools/sdk_tool/src/utils.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pub fn check_tinygo_install() -> Result<()> {
1111
Ok(_) => Ok(()),
1212
Err(e) => {
1313
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"))
1515
} else {
1616
Err(anyhow!("fvm-tinygo not install, please install err {}", e))
1717
}
@@ -28,7 +28,7 @@ pub fn check_fvm_tool_install() -> Result<()> {
2828
Ok(_) => Ok(()),
2929
Err(e) => {
3030
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"))
3232
} else {
3333
Err(anyhow!("check err {}", e))
3434
}
@@ -56,7 +56,7 @@ pub fn check_go_install() -> Result<bool> {
5656
}
5757
Err(e) => {
5858
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"))
6060
} else {
6161
Err(anyhow!("check err {}", e))
6262
}

tools/sdk_tool/src/wasmprocess.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ trait TryString {
512512
impl TryString for PathBuf {
513513
fn try_to_string(&self) -> Result<String> {
514514
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"))
516516
.map(|v| v.to_string())
517517
}
518518
}

0 commit comments

Comments
 (0)