@@ -357,9 +357,15 @@ var bn256PairingTests = []precompiledTest{
357357}
358358
359359var XDCxLastPriceTests = []precompiledTest {
360+ // {
361+ // input: common.Bytes2Hex(append(common.Hex2BytesFixed(BTCAddress, 32), common.Hex2BytesFixed(USDTAddress, 32)...)),
362+ // expected: common.Bytes2Hex(common.LeftPadBytes(BTCUSDTLastPrice.Bytes(), XDCXPriceNumberOfBytesReturn)),
363+ // name: "BTCUSDT",
364+ // },
365+ // since we diable XDCx precompiles, the test now returns 0
360366 {
361367 input : common .Bytes2Hex (append (common .Hex2BytesFixed (BTCAddress , 32 ), common .Hex2BytesFixed (USDTAddress , 32 )... )),
362- expected : common .Bytes2Hex (common .LeftPadBytes (BTCUSDTLastPrice .Bytes (), XDCXPriceNumberOfBytesReturn )),
368+ expected : common .Bytes2Hex (common .LeftPadBytes (common . Big0 .Bytes (), XDCXPriceNumberOfBytesReturn )),
363369 name : "BTCUSDT" ,
364370 },
365371 {
@@ -375,9 +381,15 @@ var XDCxLastPriceTests = []precompiledTest{
375381}
376382
377383var XDCxEpochPriceTests = []precompiledTest {
384+ // {
385+ // input: common.Bytes2Hex(append(common.Hex2BytesFixed(BTCAddress, 32), common.Hex2BytesFixed(USDTAddress, 32)...)),
386+ // expected: common.Bytes2Hex(common.LeftPadBytes(BTCUSDTEpochPrice.Bytes(), XDCXPriceNumberOfBytesReturn)),
387+ // name: "BTCUSDT",
388+ // },
389+ // since we diable XDCx precompiles, the test now returns 0
378390 {
379391 input : common .Bytes2Hex (append (common .Hex2BytesFixed (BTCAddress , 32 ), common .Hex2BytesFixed (USDTAddress , 32 )... )),
380- expected : common .Bytes2Hex (common .LeftPadBytes (BTCUSDTEpochPrice .Bytes (), XDCXPriceNumberOfBytesReturn )),
392+ expected : common .Bytes2Hex (common .LeftPadBytes (common . Big0 .Bytes (), XDCXPriceNumberOfBytesReturn )),
381393 name : "BTCUSDT" ,
382394 },
383395 {
0 commit comments