Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use correct kettle address #236

Merged
merged 1 commit into from
Apr 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/geth/spellcmd/spellcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ var (

log.Info("Sending offchain confidential compute request", "kettle", clt.KettleAddress().String())

hash, err := sendConfRequest(clt, devchainKettleAddress, contractAddr, calldata, confInput)
hash, err := sendConfRequest(clt, contractAddr, calldata, confInput)
if err != nil {
return err
}
Expand Down Expand Up @@ -285,7 +285,7 @@ func getClient(ctx *cli.Context) (*sdk.Client, error) {
return clt, nil
}

func sendConfRequest(client *sdk.Client, kettleAddr, addr common.Address, calldata, confBytes []byte) (common.Hash, error) {
func sendConfRequest(client *sdk.Client, addr common.Address, calldata, confBytes []byte) (common.Hash, error) {
signer, err := client.GetSigner()
if err != nil {
return common.Hash{}, err
Expand All @@ -303,7 +303,7 @@ func sendConfRequest(client *sdk.Client, kettleAddr, addr common.Address, callda

computeRequest, err := types.SignTx(types.NewTx(&types.ConfidentialComputeRequest{
ConfidentialComputeRecord: types.ConfidentialComputeRecord{
KettleAddress: kettleAddr,
KettleAddress: client.KettleAddress(),
Nonce: nonce,
To: &addr,
Value: nil,
Expand Down
Loading