Skip to content

Commit

Permalink
updated query with meta, and bytecodes
Browse files Browse the repository at this point in the history
  • Loading branch information
NanezX committed Dec 17, 2023
1 parent bfb12f8 commit 19655c0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions subgraph/tests/utils/subgraph/query/expression_deployer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ pub struct QueryResponse {
pub interpreter: Address,
pub store: Address,
pub parser: Address,
pub constructor_meta: Bytes,
pub constructor_meta_hash: Bytes,
pub deployed_bytecode: Bytes,
pub deployed_bytecode_hash: Bytes,
pub bytecode: Bytes,
pub bytecode_hash: Bytes,
}

impl QueryResponse {
Expand All @@ -34,6 +40,12 @@ impl QueryResponse {
.expect("invalid string address"),
store: Address::from_str(&data.store.unwrap().id).expect("invalid string address"),
parser: Address::from_str(&data.parser.unwrap().id).expect("invalid string address"),
constructor_meta: data.constructor_meta,
constructor_meta_hash: data.constructor_meta_hash,
deployed_bytecode: data.deployed_bytecode.unwrap(),
deployed_bytecode_hash: data.deployed_bytecode_hash.unwrap(),
bytecode: data.bytecode.unwrap(),
bytecode_hash: data.bytecode_hash.unwrap(),
}
}
}
Expand Down

0 comments on commit 19655c0

Please sign in to comment.