Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ninabarbakadze committed Dec 9, 2024
1 parent 4171d03 commit e3dda3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
20 changes: 2 additions & 18 deletions testing/demo/pkg/test/initialise_light_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,6 @@ func InitializeLightClient() error {
Signer: relayer,
})

// establish transfer channel for tendrmint client on evm chain
// evmMerklePathPrefix := commitmenttypesv2.NewMerklePath([]byte("evm"))
// counterpartyInfo := ics02client.IICS02ClientMsgsCounterpartyInfo{
// ClientId: "channel-0",
// MerklePrefix: [][]byte{[]byte(ibcexported.StoreKey), []byte("")},
// }
// // save contract addresses during deployment and pass it here
// lightClientAddress := ethcommon.HexToAddress("tendermint light client contract address")

// establish transfer channel for groth16 client on evm chain

return nil
}

Expand All @@ -112,7 +101,7 @@ func SetupClientContext() (client.Context, error) {

// Chain-specific configurations
chainID := "zkibc-demo"
// nodeURI := "http://localhost:5123" // RPC endpoint
cometNodeURI := "http://localhost:5123" // Comet RPC endpoint
appName := "celestia-zkevm-ibc-demo" // Name of the application from the genesis file
grpcAddr := "localhost:9190" // gRPC endpoint
homeDir := filepath.Join(home, "testing", "files", "simapp-validator") // Path to the keyring directory
Expand Down Expand Up @@ -174,10 +163,7 @@ func SetupClientContext() (client.Context, error) {
return client.Context{}, fmt.Errorf("failed to create tx config: %v", err)
}

// set up tendermint rpc
CometRPC := "http://localhost:5123"

cometNode, err := client.NewClientFromNode(CometRPC)
cometNode, err := client.NewClientFromNode(cometNodeURI)
if err != nil {
return client.Context{}, err
}
Expand Down Expand Up @@ -271,9 +257,7 @@ func BroadcastMessages(clientContext client.Context, user string, gas uint64, ms
}

fmt.Println(txResp.Code, "TX RESPONSE")
fmt.Println(txResp.Logs, "TX LOGS")
fmt.Println(txResp.RawLog, "TX RAW LOG")

return &txResp, nil
}

Expand Down
12 changes: 1 addition & 11 deletions testing/demo/pkg/test/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ func DeployContracts() error {

// print contract addresses from broadcast run-latest.json
filePath := "./solidity-ibc-eureka/broadcast/E2ETestDeploy.s.sol/80087/run-latest.json"
// Read the JSON file

// Read the JSON file
file, err := os.ReadFile(filePath)
if err != nil {
fmt.Println("Error reading file:", err)
Expand Down Expand Up @@ -66,15 +66,5 @@ func DeployContracts() error {
}
}

//


return nil
}

// func main() {

// if err := DeployContracts(); err != nil {
// fmt.Println(err)
// }
// }

0 comments on commit e3dda3b

Please sign in to comment.