cryptolandtech / moonlet-core

Moonlet Wallet - Core Package
MIT License
13 stars 8 forks source link

Transaction amount field fix #21

Closed krisboit closed 5 years ago

krisboit commented 6 years ago

GenericTransaction doesn't have an amount field, but specific classes from Zilliqa and Ethereum add an amount field with different names (amount and value).

export class ZilliqaTransaction extends GenericTransaction<IZilliqaTransactionOptions> {
    public version: number = 0;
    public pubKey: string;
    public code: Buffer;
    public amount: number;
...

and

export class EthereumTransaction extends GenericTransaction<IEthereumTransactionOptions> {
    public value: number;
    public chainId: number;
    public gasPrice: number;
    public gasLimit: number;
...