Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gartnera committed Feb 7, 2025
1 parent 9334b9a commit b925e1f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
13 changes: 9 additions & 4 deletions e2e/runner/setup_sui.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package runner

import (
"fmt"

"github.com/block-vision/sui-go-sdk/models"
"github.com/block-vision/sui-go-sdk/sui"
"github.com/stretchr/testify/require"
Expand All @@ -11,7 +9,7 @@ import (
)

func (r *E2ERunner) SetupSui(faucetURL string) {
r.Logger.Print("⚙️ initializing gateway program on Sui")
r.Logger.Print("⚙️ initializing gateway package on Sui")

deployerSigner, err := r.Account.SuiSigner()
require.NoError(r, err, "get deployer signer")
Expand Down Expand Up @@ -48,7 +46,14 @@ func (r *E2ERunner) SetupSui(faucetURL string) {
RequestType: "WaitForLocalExecution",
})
require.NoError(r, err)
fmt.Println(resp)

var packageId string

Check failure on line 50 in e2e/runner/setup_sui.go

View workflow job for this annotation

GitHub Actions / lint

var-naming: var packageId should be packageID (revive)
for _, change := range resp.ObjectChanges {
if change.Type == "published" {
packageId = change.PackageId
}
}
require.NotEmpty(r, packageId)

// TODO: save IDs in config and configure chain
}
2 changes: 1 addition & 1 deletion e2e/utils/sui/signer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func TestSuiSecp256k1Keypair(t *testing.T) {
pubkeyEncoded := base64.StdEncoding.EncodeToString(pubkeyBytes)
require.Equal(t, tt.expectedPubkeyBase64, pubkeyEncoded)

// we don't have a good way outside e2e to verify the signature is correct, but let's excertise it anyway
// we don't have a good way outside e2e to verify the signature is correct, but let's exercise it anyway
_, err = signer.SignTransactionBlock("ZXhhbXBsZQo=")
require.NoError(t, err)
})
Expand Down

0 comments on commit b925e1f

Please sign in to comment.