diff --git a/wasmsdk/proxy.go b/wasmsdk/proxy.go index 680e191e8..3c407c093 100644 --- a/wasmsdk/proxy.go +++ b/wasmsdk/proxy.go @@ -215,6 +215,7 @@ func main() { "getLookupHash": getLookupHash, "createThumbnail": createThumbnail, "makeSCRestAPICall": makeSCRestAPICall, + "wasmType": getWasmType, //blobber "delete": Delete, @@ -332,6 +333,7 @@ func main() { fmt.Println("__wasm_initialized__ = true;") zcn.Set("__wasm_initialized__", true) + zcn.Set("wasmType", "normal") } else { PrintError("__zcn_wasm__.sdk is not installed yet") } diff --git a/wasmsdk/sdk.go b/wasmsdk/sdk.go index 189d99ab6..c3d77af68 100644 --- a/wasmsdk/sdk.go +++ b/wasmsdk/sdk.go @@ -7,6 +7,7 @@ import ( "encoding/hex" "encoding/json" "fmt" + "github.com/0chain/gosdk/core/client" "github.com/0chain/gosdk/core/encryption" "github.com/0chain/gosdk/core/imageutil" @@ -54,6 +55,10 @@ func getVersion() string { return sdk.GetVersion() } +func getWasmType() string { + return "normal" +} + var sdkLogger *logger.Logger var zcnLogger *logger.Logger var logEnabled = false