Skip to content

Commit

Permalink
Deprecate L2 to L1 e2e tests (#1369)
Browse files Browse the repository at this point in the history
* Update TestIntegratoin_PerformExit

* deposit + widthdraw signature

* Add minting and approval steps in TestIntegratoin_PerformExit

* Obsolete TestL1StateReceiver SC and L2 to L1 E2E tests which were using it

* some comments added

* lint fix

* deployer address

---------

Co-authored-by: Igor Crevar <crewce@gmail.com>
Co-authored-by: Nemanja0x <nemanja@ethernal.tech>
  • Loading branch information
3 people committed Apr 10, 2023
1 parent 5d4c9d9 commit f23eb43
Show file tree
Hide file tree
Showing 8 changed files with 156 additions and 394 deletions.
1 change: 1 addition & 0 deletions consensus/polybft/contractsapi/bindings-gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ func main() {
"ExitHelper",
gensc.ExitHelper,
[]string{
"initialize",
"exit",
},
[]string{},
Expand Down
16 changes: 16 additions & 0 deletions consensus/polybft/contractsapi/contractsapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions consensus/polybft/contractsapi/gen_sc_data.go

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions consensus/polybft/contractsapi/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ var (
// test smart contracts
//go:embed test-contracts/*
testContracts embed.FS
TestL1StateReceiver *artifact.Artifact
TestWriteBlockMetadata *artifact.Artifact
RootERC20 *artifact.Artifact
RootERC721 *artifact.Artifact
Expand Down Expand Up @@ -169,11 +168,6 @@ func init() {
log.Fatal(err)
}

TestL1StateReceiver, err = artifact.DecodeArtifact(readTestContractContent("TestL1StateReceiver.json"))
if err != nil {
log.Fatal(err)
}

TestWriteBlockMetadata, err = artifact.DecodeArtifact(readTestContractContent("TestWriteBlockMetadata.json"))
if err != nil {
log.Fatal(err)
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit f23eb43

Please sign in to comment.