in #60 i've fixed the length parameter. It would be awesome to cover with integration test on localkusama that the preimage and proposal are created as expected with correct length
also there, Oliver was recommending to use SCALE encoding, so may be worth investigating that too