Skip to content

Insufficient balance error #6

@OsmanRodrigues

Description

@OsmanRodrigues

What happen?

Given a place a bet request from an account with insufficient balance
When the input transaction is sent
Then it resolves successfully in the browser wallet API (transaction status confirmed) but fails in dapp backend without error response

What SHOULD happen?

The dapp backend return some error response and the browser wallet API receive a fail transaction status

Logs

validator-1  | [INFO  rollup_http_server::http_service] Received new request of type ADVANCE
validator-1  | [INFO  actix_web::middleware::logger] 127.0.0.1 "POST /finish HTTP/1.1" 200 465 "-" "undici" 0.001088
validator-1  | Error: insufficient balance of user 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266
validator-1  |     at WalletAppImpl.transferEther (/opt/cartesi/dapp/index.js:30386:17)
validator-1  |     at BetPool.addBet (/opt/cartesi/dapp/index.js:47899:19)
validator-1  |     at Game.makeBet (/opt/cartesi/dapp/index.js:48019:18)
validator-1  |     at placeBet (/opt/cartesi/dapp/index.js:47759:10)
validator-1  |     at /opt/cartesi/dapp/index.js:47860:14
validator-1  |     at HttpApp.handleAdvance (/opt/cartesi/dapp/index.js:523:34)
validator-1  |     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
validator-1  |     at async HttpApp.start (/opt/cartesi/dapp/index.js:562:26)

Records

Screencast.from.06-06-2024.23.50.54.webm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions