Skip to content

Commit

Permalink
fixed TestAddDeployAccountDevnet on devnet
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagodeev committed May 16, 2024
1 parent f25b02e commit b1fbb46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions account/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ func TestAddDeployAccountDevnet(t *testing.T) {
if testEnv != "devnet" {
t.Skip("Skipping test as it requires a devnet environment")
}
client, err := rpc.NewProvider(base + "/rpc")
client, err := rpc.NewProvider(base)
require.NoError(t, err, "Error in rpc.NewClient")

devnet, acnts, err := newDevnet(t, base)
Expand All @@ -590,12 +590,12 @@ func TestAddDeployAccountDevnet(t *testing.T) {
acnt, err := account.NewAccount(client, fakeUserAddr, fakeUser.PublicKey, ks, 0)
require.NoError(t, err)

classHash := utils.TestHexToFelt(t, "0x7b3e05f48f0c69e4a65ce5e076a66271a527aff2c34ce1083ec6e1526997a69") // preDeployed classhash
classHash := utils.TestHexToFelt(t, "0x061dac032f228abef9c6626f995015233097ae253a7f72d68552db02f2971b8f") // preDeployed classhash
require.NoError(t, err)

tx := rpc.DeployAccountTxn{
Nonce: &felt.Zero, // Contract accounts start with nonce zero.
MaxFee: new(felt.Felt).SetUint64(4724395326064),
MaxFee: utils.TestHexToFelt(t, "0xc5cb22092551"),
Type: rpc.TransactionType_DeployAccount,
Version: rpc.TransactionV1,
Signature: []*felt.Felt{},
Expand Down
2 changes: 1 addition & 1 deletion rpc/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ var (
// Requires a Devnet configuration running locally
// (ref: https://github.com/0xSpaceShard/starknet-devnet-rs)
"devnet": {
base: "http://localhost:5050/rpc",
base: "http://localhost:5050/",
},
// Used with a mock as a standard configuration, see `mock_test.go``
"mock": {},
Expand Down

0 comments on commit b1fbb46

Please sign in to comment.