Skip to content

Commit

Permalink
Addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoreliovlabs committed Nov 29, 2024
1 parent 5f6b972 commit e637f99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import static org.junit.jupiter.api.Assertions.*;

class ContractCreatingRollbackTest {
class ContractCreatingDslRollbackTest {

@Test
void testCreateExecutionFailsAfter453IsRollingBack() throws FileNotFoundException, DslProcessorException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ comment
// the contract source code

contract BytecodeFactory {
event ContractDeployed(address contractAddress);

// Función para desplegar un contrato con `create2` a partir de un bytecode conocido
function deployContract(bytes memory bytecode, uint256 salt) public returns (address) {
function deployContractWithCreate2WithTheCodePassedInParameter(bytes memory bytecode, uint256 salt) public returns (address) {
address contractAddress;

assembly {
// Crear el contrato usando `create2` y asignar la dirección a `contractAddress`
contractAddress := create2(0, add(bytecode, 0x20), mload(bytecode), salt)
}

Expand Down

0 comments on commit e637f99

Please sign in to comment.