Remove obsolete tokenTicker from SendJob

This commit is contained in:
Simon Warta
2020-02-10 14:19:34 +01:00
parent 940c41ba64
commit 3b1774794d
4 changed files with 1 additions and 5 deletions
@@ -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);
-1
View File
@@ -91,7 +91,6 @@ describe("Faucet", () => {
fractionalDigits: 6,
tokenTicker: "COSM" as TokenTicker,
},
tokenTicker: "COSM" as TokenTicker,
sender: holder,
recipient: recipient,
});
-1
View File
@@ -84,7 +84,6 @@ export class Faucet {
jobs.push({
sender: holderIdentity,
recipient: refillDistibutor.address,
tokenTicker: token,
amount: this.tokenManager.refillAmount(token),
});
}
+1 -2
View File
@@ -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;
}