We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32248a4 commit ca30decCopy full SHA for ca30dec
Cargo.toml
@@ -8,6 +8,7 @@ crate-type = ["cdylib", "rlib"]
8
9
[dependencies]
10
borsh = "1.5.7"
11
+bs58 = "0.5.1"
12
near-sdk = { version = "5.17.1", features = ["global-contracts", "unstable"] }
13
14
[dev-dependencies]
src/lib.rs
@@ -76,7 +76,7 @@ impl GlobalFactoryContract {
76
"Using global contract with code hash: {:?}",
77
code_hash
78
));
79
- promise.use_global_contract(code_hash.as_bytes().to_vec())
+ promise.use_global_contract(bs58::decode(code_hash).into_vec().unwrap())
80
}
81
82
0 commit comments