This commit is contained in:
Laurent Le Houerou 2021-11-09 13:23:41 +04:00
parent cc825b14da
commit 923903d9f5

View File

@ -72,3 +72,9 @@ func (m *NftMarket) CreateAskOrder(ctx context.Context, collection common.Addres
return m.contract.CreateAskOrder(opts.TransactOpts, collection, big.NewInt(int64(tokenid)), m.wbnb.ValueToBigInt(price)) return m.contract.CreateAskOrder(opts.TransactOpts, collection, big.NewInt(int64(tokenid)), m.wbnb.ValueToBigInt(price))
}, opts...) }, opts...)
} }
func (m *NftMarket) ModifyAskOrder(ctx context.Context, collection common.Address, tokenid int, price decimal.Decimal, opts ...evm.ExecutionOption) (evm.Transaction, error) {
return m.client.Execute(ctx, func(ctx context.Context, opts *evm.TransactOpts) (*types.Transaction, error) {
return m.contract.ModifyAskOrder(opts.TransactOpts, collection, big.NewInt(int64(tokenid)), m.wbnb.ValueToBigInt(price))
}, opts...)
}