mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Remove obsolete tokenTicker from SendJob
This commit is contained in:
parent
940c41ba64
commit
3b1774794d
@ -134,7 +134,6 @@ export async function start(args: ReadonlyArray<string>): Promise<void> {
|
||||
sender: sender,
|
||||
recipient: address,
|
||||
amount: faucet.tokenManager.creditAmount(ticker),
|
||||
tokenTicker: ticker,
|
||||
};
|
||||
logSendJob(job);
|
||||
await faucet.send(profile, job);
|
||||
|
@ -91,7 +91,6 @@ describe("Faucet", () => {
|
||||
fractionalDigits: 6,
|
||||
tokenTicker: "COSM" as TokenTicker,
|
||||
},
|
||||
tokenTicker: "COSM" as TokenTicker,
|
||||
sender: holder,
|
||||
recipient: recipient,
|
||||
});
|
||||
|
@ -84,7 +84,6 @@ export class Faucet {
|
||||
jobs.push({
|
||||
sender: holderIdentity,
|
||||
recipient: refillDistibutor.address,
|
||||
tokenTicker: token,
|
||||
amount: this.tokenManager.refillAmount(token),
|
||||
});
|
||||
}
|
||||
|
@ -1,8 +1,7 @@
|
||||
import { Address, Amount, Identity, TokenTicker } from "@iov/bcp";
|
||||
import { Address, Amount, Identity } from "@iov/bcp";
|
||||
|
||||
export interface SendJob {
|
||||
readonly sender: Identity;
|
||||
readonly recipient: Address;
|
||||
readonly tokenTicker: TokenTicker;
|
||||
readonly amount: Amount;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user