QuarkChain / go-ethereum

Official Go implementation of the Ethereum protocol
https://geth.ethereum.org
GNU Lesser General Public License v3.0
5 stars 2 forks source link

put func of system contract 03330001 do not return correct data. #140

Open ping-ke opened 1 year ago

ping-ke commented 1 year ago

System information

branch: `tm_w3q_sstorage_miner_debug testnet: https://testnet.web3q.io:8545

Expected behavior

when call contract 0x0000000000000000000000000000000003330001 put func with params key: "0x6fc36ac922915d5981f05d340506e1f7e7f52a23c935e1e402887d417c723e6b", data: 0x03330001. After the tx success, we can call contract 0x0000000000000000000000000000000003330001 "get" func with key "0x6fc36ac922915d5981f05d340506e1f7e7f52a23c935e1e402887d417c723e6b", off: 0, len: 4, we should get data 0x03330001.

Actual behavior

at local debug, we get the expected value, but on the test net https://testnet.web3q.io:8545, we got 0x00000000, which is first 4 bytes of the data commit.

Steps to reproduce the behavior

connect to testnet https://testnet.web3q.io:8545, with remix, and call 0x0000000000000000000000000000000003330001 contract put func.

ping-ke commented 1 year ago

will be fixed by https://github.com/QuarkChain/go-ethereum/pull/131.