Skip to content

Commit

Permalink
[pallet-revive] Add metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Oct 30, 2024
1 parent 4e24733 commit ec30f5a
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 228 deletions.
128 changes: 4 additions & 124 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions substrate/frame/revive/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,9 @@ sp-core = { workspace = true, default-features = true }
sp-weights = { workspace = true, default-features = true }
sp-runtime = { workspace = true, default-features = true }
sc-rpc = { workspace = true, default-features = true }

tower.workspace = true
tower-http = { workspace = true, features = ["full"] }
hyper.workspace = true
sc-cli = { workspace = true, default-features = true }
sc-service = { workspace = true, default-features = true }
prometheus-endpoint = { workspace = true, default-features = true }

rlp = { workspace = true, optional = true }
subxt-signer = { workspace = true, optional = true, features = [
Expand All @@ -73,7 +72,6 @@ secp256k1 = { workspace = true, optional = true, features = ["recovery"] }
env_logger = { workspace = true }

[features]
dev = []
example = ["hex", "hex-literal", "rlp", "secp256k1", "subxt-signer"]
riscv = ["pallet-revive/riscv"]

Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/revive/rpc/examples/js/src/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function str_to_bytes(str: string): Uint8Array {
async function deploy() {
console.log(`Deploying Contract...`);

const bytecode = readFileSync("rpc_demo.polkavm");
const bytecode = readFileSync("../rpc_demo.polkavm");
const contractFactory = new ContractFactory(
[
"constructor(bytes memory _data)",
Expand Down
Loading

0 comments on commit ec30f5a

Please sign in to comment.