Closed emostov closed 7 months ago
idea: you could probably clean up tests a bit by directly setting whatever vested transfer you need on any user, rather than repeating the process of transferring from some (arbitrary) account into your desired accounts.
Might need to be its own PR.
for example I can foresee
ExtBuilder::default() .add_vest(2, 20 * ED, ED, 10) .add_vest(2, 10 * ED, ED, 15) .build()
_Originally posted by @kianenigma in https://github.com/paritytech/substrate/pull/9202#discussion_r667876906_
Some hints:
add_vest
ExtBuilder
build
Find me at @zeke:matrix.parity.io for further questions
Hi @emostov, I'd like to attempt this.
cc @kianenigma @shawntabrizi
Seems like busywork to me. Closing as wont fix.
idea: you could probably clean up tests a bit by directly setting whatever vested transfer you need on any user, rather than repeating the process of transferring from some (arbitrary) account into your desired accounts.
Might need to be its own PR.
for example I can foresee
_Originally posted by @kianenigma in https://github.com/paritytech/substrate/pull/9202#discussion_r667876906_
Some hints:
add_vest
) defined onExtBuilder
build
add_vest
) method would replace lines like https://github.com/paritytech/substrate/blob/9eddaec3b8f15eec0c458e7bb3a1c16db91d8199/frame/vesting/src/tests.rs#L122Find me at @zeke:matrix.parity.io for further questions