首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Python以太坊智能合约开发指南最后一个函数报错IndexError?

Python以太坊智能合约开发指南最后一个函数报错IndexError?

提问于 2020-05-14 16:16:23
回答 0关注 0查看 141

报错如下:

Traceback (most recent call last):

File "D:/NlBlock/text.py", line 33, in <module>

LC.submit_a_superblock(str(new_block.stringify_block()))

File "D:\NlBlock\e.py", line 199, in submit_a_superblock

.format(processed_receipt[0].args.sender, processed_receipt[0].args.superblock)

IndexError: tuple index out of range

代码如下:

processed_receipt = contract.events.SuperblockSubmission().processReceipt(tx_receipt)

print(processed_receipt)

output = "Address {} broadcasted the opinion: {}" \

.format(processed_receipt[0].args._soapboxer, processed_receipt[0].args._opinion)

print(output)

完整代码为Python以太坊智能合约开发指南(https://blog.csdn.net/weixin_34356310/article/details/93025947)

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档