#Soroban vec.insert doesn't shift like "normal" vec.insert does

10 messages · Page 1 of 1 (latest)

slow sparrow
plush crypt
#

It might be an oversight. I don't see any reason why the vec.insert calls env::vec_put rather than env::vec_insert. @deft cove Do you remember if there is any?

deft cove
#

This looks like a bug to me.

plush crypt
#

Ok I will fix it.

plush crypt
copper root
thorn wigeon
#

@plush crypt maybe open a few issues about "we need more tests"? I don't know if there is a good way for people to know how they can help (we can use the flag "help wanted" to signal those kind of easy task that anybody can pick up)

deft cove
thorn wigeon
#

yes that as well. code coverage will not tell you if you have logic that is completely wrong like the bug above though