Thanks to visit codestin.com
Credit goes to github.com

Skip to content

账户余额扣去转账消耗的quato后,余额大于转账金额转账失败 #698

@QingYanL

Description

@QingYanL

Description

[账户余额扣去转账消耗的quato后,余额大于转账金额转账失败]

Steps to Reproduce

  1. 转账失败:
    创建账户A,账户B;
    admin 给账户A 转账30000 * 10^6 ;
    账户A 给账户B 转账 1000,消耗"cumulativeQuotaUsed": "0x5208" 值为: 21000 * 10^6,
    失败"errorMessage": "Cost of transaction exceeds sender balance.";
    转账后,账户A 余额 9000 * 10^6 ;

image
image
image

  1. 转账成功:
    创建账户A,账户B;
    admin给账户A转账 30001 * 10^6;
    账户A 给账户B 转账 1000,消耗"cumulativeQuotaUsed": "0x5208" 值为: 21000 * 10^6;
    账户A 余额:0x218805858 值为9000999000;
    经计算: 账户A 转账后余额 + 账户A转账给账户B 消耗的quota + 账户A 转账给账户B的金额 = 账户A 转账前余额
    9000999000 + 21000000000 + 1000 = 30001000000

Expected behavior: [步骤一中账户A余额大于1000 期望转账成功]

Actual behavior: [步骤一转账扣去quota后余额仍大于转账金额,转账失败]

Reproduce how often: [every]

Versions

[v0.25]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions