You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let signature = "0xa023966c15a4fdefac7e06c06a869f77adfc5359fe26c7241f122266b063bd280941e2f6922b42656ce53ef0d32d071ac6178c88195bc8f8c6f597792d57304c1b" let abiCoder = new ethers.utils.AbiCoder(); let signature_hex = abiCoder.encode(["bytes"], [signature]).replace("0x", ""); console.log(signature_hex)
AbiCoder.encode bytes 问题
var dynamicOffset_1 = dynamicWriter.length; coder.encode(dynamicWriter, value);
原本代码 没有赋值就取长度
修复代码
coder.encode(dynamicWriter, value); var dynamicOffset_1 = dynamicWriter.length;
先赋值在取长度
The text was updated successfully, but these errors were encountered: