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

Bug: Database owner is not recognized #1186

Open
KwilLuke opened this issue Jan 2, 2025 · 0 comments
Open

Bug: Database owner is not recognized #1186

KwilLuke opened this issue Jan 2, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@KwilLuke
Copy link
Contributor

KwilLuke commented Jan 2, 2025

Version / Commit

main

Operating System

Darwin-Arm64

Configuration

On main for kwil-db v0.10, I add my wallet address to my genesis.json as follows:

{
  "chain_id": "kwil-testnet",
  "initial_height": 0,
  "leader": "0226b3ff29216dac187cea393f8af685ad419ac9644e55dce83d145c8b1af213bd",
  "validators": [
    {
      "pubkey": "0226b3ff29216dac187cea393f8af685ad419ac9644e55dce83d145c8b1af213bd",
      "power": 1
    }
  ],
  "db_owner": "AfFDC06cF34aFD7D5801A13d48C92AD39609901D",
  "max_block_size": 6291456,
  "join_expiry": 14400,
  "vote_expiry": 108000,
  "disabled_gas_costs": true,
  "max_votes_per_tx": 200,
  "state_hash": null,
  "migration": {
    "start_height": 0,
    "end_height": 0
  }
}

Expected Behavior

When I try to execute a privilege SQL query (e.g., CREATE NAMESPACE) with the private key for the AfFDC... address, I expect the command to succeed.

Actual Behavior

I receive the following error:

lukelamey@Lukes-MBP-2 .build % ./kwil-cli database execute -s 'CREATE NAMESPACE luke' --sync
tx query failed: jsonrpc.Error: code = -700, message = failed to query transaction, data = null
err code = -700, msg = failed to query transaction

Steps to Reproduce

Set up new node files, add a wallet address to db_owner, and try to execute CREATE NAMESPACE with the configured wallet's private key.

Additional Information

No response

@KwilLuke KwilLuke added the bug Something isn't working label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant