Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Rushikeshnimkar committed May 30, 2024
1 parent 2b07455 commit 5f8b00f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/suiwallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/tyler-smith/go-bip39"
)

var WalletAddress string
var WalletAddressSui string

// GenerateWalletAddress generates a wallet address from the mnemonic set in the environment
func GenerateWalletAddress() {
Expand Down Expand Up @@ -55,5 +55,5 @@ func GenerateWalletAddress() {
log.Println("Wallet Address:", walletAddress)

// Assign the wallet address to the global variable
WalletAddress = walletAddress
WalletAddressSui = walletAddress
}
4 changes: 2 additions & 2 deletions util/pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type NodeStatus struct {
UploadSpeed float64 `json:"uploadSpeed"`
StartTimeStamp int64 `json:"startTimeStamp"`
Name string `json:"name"`
walletAddress string `json:"walletAddress"`
WalletAddress string `json:"walletAddress"`
}

func CreateNodeStatus(address string, id string, startTimeStamp int64, name string) *NodeStatus {
Expand All @@ -36,7 +36,7 @@ func CreateNodeStatus(address string, id string, startTimeStamp int64, name stri
UploadSpeed: speedtestResult.UploadSpeed,
StartTimeStamp: startTimeStamp,
Name: name,
walletAddress: core.WalletAddress,
WalletAddress: core.WalletAddressSui,
}
return nodeStatus
}

0 comments on commit 5f8b00f

Please sign in to comment.