Skip to content

Commit 2f56ff4

Browse files
committed
fix: address pr concern
1 parent 8e3f4dd commit 2f56ff4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

portal-bridge/src/bridge/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl StateBridge {
195195
// gossip contract bytecode
196196
if let Some(code) = trin_execution
197197
.database
198-
.get_newly_created_contract_if_available(account.code_hash)
198+
.get_newly_created_contract(account.code_hash)
199199
{
200200
self.gossip_contract_bytecode(
201201
address_hash,

trin-execution/src/storage/evm_db.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl EvmDB {
106106
trie_diff
107107
}
108108

109-
pub fn get_newly_created_contract_if_available(&self, code_hash: B256) -> Option<Bytecode> {
109+
pub fn get_newly_created_contract(&self, code_hash: B256) -> Option<Bytecode> {
110110
self.newly_created_contracts.lock().get(&code_hash).cloned()
111111
}
112112

trin-execution/tests/content_generation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ async fn test_we_can_generate_content_key_values_up_to_x() -> Result<()> {
159159
if account.code_hash != keccak256([]) {
160160
if let Some(code) = trin_execution
161161
.database
162-
.get_newly_created_contract_if_available(account.code_hash)
162+
.get_newly_created_contract(account.code_hash)
163163
{
164164
let content_key = create_contract_content_key(address_hash, account.code_hash)
165165
.expect("Content key should be present");

0 commit comments

Comments
 (0)