File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ impl StateBridge {
195
195
// gossip contract bytecode
196
196
if let Some ( code) = trin_execution
197
197
. database
198
- . get_newly_created_contract_if_available ( account. code_hash )
198
+ . get_newly_created_contract ( account. code_hash )
199
199
{
200
200
self . gossip_contract_bytecode (
201
201
address_hash,
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ impl EvmDB {
106
106
trie_diff
107
107
}
108
108
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 > {
110
110
self . newly_created_contracts . lock ( ) . get ( & code_hash) . cloned ( )
111
111
}
112
112
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ async fn test_we_can_generate_content_key_values_up_to_x() -> Result<()> {
159
159
if account. code_hash != keccak256 ( [ ] ) {
160
160
if let Some ( code) = trin_execution
161
161
. database
162
- . get_newly_created_contract_if_available ( account. code_hash )
162
+ . get_newly_created_contract ( account. code_hash )
163
163
{
164
164
let content_key = create_contract_content_key ( address_hash, account. code_hash )
165
165
. expect ( "Content key should be present" ) ;
You can’t perform that action at this time.
0 commit comments