From 19655c08b1fe17aca2d2d32279e7704e0d344dff Mon Sep 17 00:00:00 2001 From: NanezX Date: Sat, 16 Dec 2023 20:24:13 -0400 Subject: [PATCH] updated query with meta, and bytecodes --- .../utils/subgraph/query/expression_deployer/mod.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/subgraph/tests/utils/subgraph/query/expression_deployer/mod.rs b/subgraph/tests/utils/subgraph/query/expression_deployer/mod.rs index fe960eab5..491cc2b8b 100644 --- a/subgraph/tests/utils/subgraph/query/expression_deployer/mod.rs +++ b/subgraph/tests/utils/subgraph/query/expression_deployer/mod.rs @@ -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 { @@ -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(), } } }